PowerControlUnit
class 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_components
in thes2e-core/simulation_sample/spacecraft
is useful to know how to use this class. - Users can make their original
PowerControlUnit
class by inheriting this base class. - Users need to override the
MainRoutine
,GetLogHeader
, andGetLogValue
functions 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
PowerPort
when 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
PowerPort
when the port still exists.
N/A
N/A