Spacecraft Control Bundle 1
fsw_time Class Reference

The onboard clock model. More...

#include <fsw_time.h>

Inheritance diagram for fsw_time:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ fsw_time()

fsw_time::fsw_time ( const char *  mod_name)

Constructor.

Member Function Documentation

◆ handle_event()

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.

◆ initialize()

void fsw_time::initialize ( )

One time initialization.

References jd_ref, and jd_sim_ref.

◆ initialize_data()

void fsw_time::initialize_data ( )

Creates the "jd" variable and creates the FSW_TIME_TRIGGER event notification.

References FSW_TIME_TRIGGER, and jd_ref.

Member Data Documentation

◆ jd_ref

CD_CREATE_REF fsw_time::jd_ref
protected

Julian date output.

Referenced by handle_event(), initialize(), and initialize_data().

◆ jd_sim_ref

CD_REQUEST_REF fsw_time::jd_sim_ref
protected

Julian date from simulation.

Referenced by handle_event(), and initialize().


The documentation for this class was generated from the following files: