- The
SampleSpacecraftclass is is an example of making the user defined spacecraft with theSpacecraftclass.
src/simulation_sample/spacecraft/sample_spacecraft.cpp, .hpp- The
SampleSpacecraftclass is defined here.
- The
src/simulation/spacecraft/spacecraft.cpp, .hpp- The
Spacecraftclass is defined here.
- The
src/simulation_sample/case/sample_case.cpp, .hpp- The instance of the
SampleSpacecraftclass is made in this class.
- The instance of the
-
sample_spacecraft.hpp- Define user defined ground station class. We use
SampleSpacecraftclass here.- Users can name freely like
Equuleus,UtSpacecraft, and others.
- Users can name freely like
- Inherit the
Spacecraftclass.- You need to define override functions for all pure virtual functions of the
Spacecraftclass.
- You need to define override functions for all pure virtual functions of the
- Add components for spacecraft if need.
- Define user defined ground station class. We use
-
sample_spacecraft.cpp- Write detailed process of the override functions
- Constructor
- Initialize
Spacecraftand make an instance ofSampleComponentsas installed components.
- Initialize
- Other functions
- Usually users don't need to care other functions for normal case.
NA
NA