PowerControlUnitclass is a base class of power control units and manages multiplePowerPorts.
- Main file:
power_control_unit.cpp, .hpp - Related file:
power_port.cpp, .hpp
- Example: The
sample_componentsin thes2e-core/simulation_sample/spacecraftis useful to know how to use this class. - Users can make their original
PowerControlUnitclass by inheriting this base class. - Users need to override the
MainRoutine,GetLogHeader, andGetLogValuefunctions to define the behavior of their PCUs.
- This function makes a new
PowerPort.
- Inputs: the port ID and the arguments for
PowerPort - Outputs: the error code (0 is a success, -1 is an error)
- Make a new
PowerPortwhen the port ID is not used.
- This function deletes the designated
PowerPort.
- Inputs: the port ID.
- Outputs: the error code (0 is a success, -1 is an error).
- Delete the designated
PowerPortwhen the port still exists.
N/A
N/A