Spacecraft Control Bundle 1
fsw_timer.h
1/*
2 * Header file for object of class fsw_timer.
3 * Copyright 2008, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8
9#ifndef FSW_TIMER
10#define FSW_TIMER
11
14class fsw_timer : public cd_control_module
15{
16 public:
17 fsw_timer (const char * mod_name);
18 void initialize_data();
19 void initialize();
20 void handle_event(int code);
21
22 protected:
25
26 private:
27 double control_time_last;
28 double perctol;
29
30 double get_met();
31 double jD0;
32 double met_last;
33
34};
35
36extern "C"
37{
38 cd_control_module *fsw_timer_builder(const char *name);
39}
40
41#endif
This times and sends triggers to all modules.
Definition: fsw_timer.h:15
void handle_event(int code)
Request the following event notifications:
Definition: fsw_timer.cc:46
CD_REQUEST_REF acs_control_period_command_ref
ACS control period (double)
Definition: fsw_timer.h:24