PowerNodeUsageMsgPayload that one or more power storage nodes (batteries, monitors) accumulate.
Power generation
simpleSolarPanel
simpleSolarPanel
Models power generation from a solar panel using a cosine-law illumination model. The module computes output power as:where
W_base is the solar irradiance at the spacecraft location, C_eclipse is the eclipse factor (0–1), C_panel is the panel efficiency, nHat is the panel normal in body frame, sHat is the spacecraft–sun unit vector, and A_panel is the panel area.Messages| Message | Type | Direction | Description |
|---|---|---|---|
sunInMsg | SpicePlanetStateMsgPayload | Input | Sun position |
stateInMsg | SCStatesMsgPayload | Input | Spacecraft position and attitude |
sunEclipseInMsg | EclipseMsgPayload | Input (optional) | Eclipse illumination factor |
nodePowerOutMsg | PowerNodeUsageMsgPayload | Output | Generated power |
Power storage
simpleBattery
simpleBattery
A minimal battery model that integrates net power input using Euler integration:The total stored energy is clamped to
storageCapacity. Supports an optional fault message that reduces the effective capacity.Key parameters| Parameter | Description |
|---|---|
storageCapacity | Maximum energy storage [J] |
storedCharge_Init | Initial charge [J] |
simplePowerMonitor
simplePowerMonitor
A power storage node that tracks net power flow without a storage capacity limit. Use this module to monitor total power balance across a subsystem without modelling battery state of charge.
Power loads
simplePowerSink
simplePowerSink
A constant-power load node. Connect it to a battery or monitor to account for baseline power draw from avionics, heaters, or any other fixed-consumption device.The device can be switched on or off via an optional
DeviceStatusMsgPayload input message.ReactionWheelPower
ReactionWheelPower
Computes the electrical power consumed by a single reaction wheel. The power model accounts for a constant base power draw plus the mechanical power needed to change wheel speed.Two efficiency parameters govern the model:
elecToMechEfficiency(η_e2m): efficiency converting electrical to mechanical power when accelerating the wheel.mechToElecEfficiency(η_m2e): fraction of mechanical energy recovered when braking. Set to0if no energy recovery.
| Message | Type | Direction | Description |
|---|---|---|---|
rwStateInMsg | RWConfigLogMsgPayload | Input | RW wheel speed and motor torque |
nodePowerOutMsg | PowerNodeUsageMsgPayload | Output | RW power draw |
antennaPower
antennaPower
Computes the electrical power draw of an antenna based on its operational state. Power draw depends on whether the antenna is in
ANTENNA_OFF, ANTENNA_RX, ANTENNA_TX, or ANTENNA_RXTX mode.Messages| Message | Type | Direction | Description |
|---|---|---|---|
antennaSetStateInMsg | AntennaLogMsgPayload | Input | Antenna state including Tx and Rx power |
nodePowerOutMsg | PowerNodeUsageMsgPayload | Output | Antenna power draw |