Spacecraft Models Package 2.0
Spacecraft Models for DSim
Public Member Functions | Protected Attributes | List of all members
powered_hardware Class Reference

A super class for powered hardware. More...

#include <powered_hardware.h>

Inheritance diagram for powered_hardware:
antenna battery gps_receiver imu_mems star_tracker

Public Member Functions

void * describe_setup (void *ds)
 Describe the setup variables.
 
void initialize_data ()
 Initialize outlets and output variables.
 
void initialization_complete ()
 Finish initialization.
 
void initialize_timestep ()
 Initialize the timestep.
 

Protected Attributes

dsim_variable power_on_dsim
 Power consumed when on (constant)
 
dsim_variable power_standby_dsim
 Power consumed when in standby mode (constant)
 
dsim_variable failed_dsim
 Command flag for failed (1) or not (0)
 
dsim_variable on_dsim
 Command flag for on (1) or off (1)
 
dsim_variable current_dsim
 Measured current.
 
dsim_variable voltage_dsim
 Input voltage.
 
dsim_variable thermal_node_dsim
 Thermal node.
 
dsim_variable heat_dsim
 Heat.
 
dsim_variable power_dsim
 Power.
 

Detailed Description

A super class for powered hardware.

This is a super class for any device that uses power. It can be used by itself to model power consuming devices. It includes a current output. The power states are on, standby and off. Off no power is produced. The voltage is the supply voltage. This class can handle multiple devices in the subclass. Each device has a separate on, failed and current. Power consumed when on and on standby are the same. Power consumption is the total for all devices. The thermal node id is the first for the hardware. The thermal node will be this node + 0...n-1


The documentation for this class was generated from the following files: