Spacecraft Control Bundle 1
cs_timer Class Reference

This times and sends triggers to all modules. More...

#include <cs_timer.h>

Inheritance diagram for cs_timer:

Public Member Functions

 cs_timer (const char *mod_name)
 
void initialize_data ()
 Request notification of CD_SIMULATION_STEP_EVENT. More...
 
void initialize_data_requests ()
 Request the acs_control_period_command which will be used to kick off the event sequence. More...
 
void initialize ()
 Initialize. Set the time variables to zero. More...
 
void handle_event (int code)
 Trigger the sequence of events. More...
 

Protected Member Functions

double get_met ()
 Get the mission elapsed time. More...
 

Protected Attributes

double control_time_last
 
double perctol
 
CD_REQUEST_REF acs_control_period_command_ref
 ACS control period - Command format: double. More...
 

Detailed Description

This times and sends triggers to all modules.

Member Function Documentation

◆ get_met()

double cs_timer::get_met ( )
protected

Get the mission elapsed time.

Calculate the mission elapsed time.

Referenced by handle_event().

◆ handle_event()

◆ initialize()

void cs_timer::initialize ( )

Initialize. Set the time variables to zero.

◆ initialize_data()

void cs_timer::initialize_data ( )

Request notification of CD_SIMULATION_STEP_EVENT.

◆ initialize_data_requests()

void cs_timer::initialize_data_requests ( )

Request the acs_control_period_command which will be used to kick off the event sequence.

References acs_control_period_command, and acs_control_period_command_ref.

Member Data Documentation

◆ acs_control_period_command_ref

CD_REQUEST_REF cs_timer::acs_control_period_command_ref
protected

ACS control period - Command format: double.

Referenced by handle_event(), and initialize_data_requests().


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