Spacecraft Control Bundle 1
|
The onboard clock model. More...
#include <fsw_time.h>
Public Member Functions | |
fsw_time (const char *mod_name) | |
Constructor. More... | |
void | initialize_data () |
Creates the "jd" variable and creates the FSW_TIME_TRIGGER event notification. More... | |
void | initialize () |
One time initialization. More... | |
void | handle_event (int code) |
Check for a valid sim jD and update the measured output. More... | |
Protected Attributes | |
Inputs | |
| |
CD_REQUEST_REF | jd_sim_ref |
Julian date from simulation. More... | |
Outputs | |
| |
CD_CREATE_REF | jd_ref |
Julian date output. More... | |
The onboard clock model.
This class gets the Julian date from the simulation. It represents the actual onboard clock. This would be replaced for flight with a direct hardware interface.
fsw_time::fsw_time | ( | const char * | mod_name | ) |
Constructor.
void fsw_time::handle_event | ( | int | code | ) |
Check for a valid sim jD and update the measured output.
References jd_ref, and jd_sim_ref.
void fsw_time::initialize | ( | ) |
One time initialization.
References jd_ref, and jd_sim_ref.
void fsw_time::initialize_data | ( | ) |
Creates the "jd" variable and creates the FSW_TIME_TRIGGER event notification.
References FSW_TIME_TRIGGER, and jd_ref.
|
protected |
Julian date output.
Referenced by handle_event(), initialize(), and initialize_data().
|
protected |
Julian date from simulation.
Referenced by handle_event(), and initialize().