- The
SampleGroundStationclass is is an example of making the user defined ground station with theGroundStationclass.
src/simulation_sample_/ground_station/sample_ground_station.cpp, .hpp- The
SampleGroundStationclass is defined here.
- The
src/simulation/ground_station/ground_station.cpp, .hpp- The
GroundStationclass is defined here.
- The
src/simulation_sample/case/sample_case.cpp, .hpp- The instance of the
SampleGroundStationclass is made in this class.
- The instance of the
-
sample_ground_station.hpp- Define user defined ground station class. We use
SampleGroundStationclass here.- Users can name freely like
UtGroundStation,DsnGroundStation, and others.
- Users can name freely like
- Inherit the
GroundStationclass.- You need to define override functions for all pure virtual functions of the
GroundStationclass.
- You need to define override functions for all pure virtual functions of the
- Add components for ground station if need.
- Define user defined ground station class. We use
-
sample_ground_station.cpp- Write detailed process of the override functions
- Constructor
- Initialize
GroundStationand call theSampleGroundStation::Initializefunction.
- Initialize
- Destructor
- Delete components.
LogSetupfunction- Set log you need.
Updatefunction- Call the
GroundStation::Updatefunction. - Call the ground station component's
Updatefunctions.
- Call the
NA
NA