- The
SampleSpacecraftComponentsclass is an example of component list mounted on theSampleSpacecraft.
src/simulation_sample/spacecraft/sample_spacecraft_components.cpp, .hppSampleSpacecraftComponentsis defined here.
src/simulation_sample/spacecraft/sample_ground_station.cpp, .hpp- The instance of the
SampleSpacecraftComponentclass is made in this class.
- The instance of the
- See Sample Spacecraft because the
SampleSpacecraftComponentis used in theSampleSpacecraft. - Details: TBW
-
sample_components.hpp- Define user defined components class. We use
SampleComponentsclass here.- Users can name freely like
EquuleusComponents,UtSpacecraftComponents, and others.
- Users can name freely like
- Inherit the
InstalledComponentsclass.- Users need to define override functions for all pure virtual functions of the
InstalledComponentsclass.
- 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
InitHogefunction 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_NandGenerateTorque_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