- The
SampleSpacecraftComponents
class is an example of component list mounted on theSampleSpacecraft
.
src/simulation_sample/spacecraft/sample_spacecraft_components.cpp, .hpp
SampleSpacecraftComponents
is defined here.
src/simulation_sample/spacecraft/sample_ground_station.cpp, .hpp
- The instance of the
SampleSpacecraftComponent
class is made in this class.
- The instance of the
- See Sample Spacecraft because the
SampleSpacecraftComponent
is used in theSampleSpacecraft
. - Details: TBW
-
sample_components.hpp
- Define user defined components class. We use
SampleComponents
class here.- Users can name freely like
EquuleusComponents
,UtSpacecraftComponents
, and others.
- Users can name freely like
- Inherit the
InstalledComponents
class.- Users need to define override functions for all pure virtual functions of the
InstalledComponents
class.
- Users need to define override functions for all pure virtual functions of the
- Add components you want as private members of this class.
- In this sample, we defined many components here to show how to use them.
- Define user defined components class. We use
-
sample_components.cpp
- Write detailed process of the override functions
- Constructor
- In the constructor, users need to make instances of the components using
InitHoge
function for each component.- Currently, codes written here is confusing. We need to fix them to simplify the codes.
- Users can also define the power line connection here.
- In the constructor, users need to make instances of the components using
- Destructor
- Delete all components here.
GenerateForce_b_N
andGenerateTorque_b_Nm
- If actuators are installed, please add the force or torque generated by the actuators here.
LogSetup
- Please add to log list if you need.
NA
NA