- The
SampleSpacecraft
class is is an example of making the user defined spacecraft with theSpacecraft
class.
src/simulation_sample/spacecraft/sample_spacecraft.cpp, .hpp
- The
SampleSpacecraft
class is defined here.
- The
src/simulation/spacecraft/spacecraft.cpp, .hpp
- The
Spacecraft
class is defined here.
- The
src/simulation_sample/case/sample_case.cpp, .hpp
- The instance of the
SampleSpacecraft
class is made in this class.
- The instance of the
-
sample_spacecraft.hpp
- Define user defined ground station class. We use
SampleSpacecraft
class here.- Users can name freely like
Equuleus
,UtSpacecraft
, and others.
- Users can name freely like
- Inherit the
Spacecraft
class.- You need to define override functions for all pure virtual functions of the
Spacecraft
class.
- 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
Spacecraft
and make an instance ofSampleComponents
as installed components.
- Initialize
- Other functions
- Usually users don't need to care other functions for normal case.
NA
NA