Spacecraft Control Bundle 1
l2_timer.h
1/*
2 * Header file for object of class l2_timer.
3 * Copyright 2008, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8
9#ifndef L2_TIMER
10#define L2_TIMER
11
17class l2_timer : public cd_control_module
18{
19 public:
20 l2_timer (const char * mod_name);
21 void initialize_data();
22 void initialize();
23 void handle_event(int code);
24
25 protected:
26 double control_time_last;
27 double perctol;
28
31
32 double get_met();
33 double jD0;
34 double met_last;
35
36};
37
38extern "C"
39{
40 cd_control_module *l2_timer_builder(const char *name);
41}
42
43#endif
This is the timer module for the L2 mission using optical navigation.
Definition: l2_timer.h:18
CD_REQUEST_REF acs_control_period_command_ref
ACS control period; Format: double.
Definition: l2_timer.h:30
void handle_event(int code)
Trigger the specified set of events every control period.
Definition: l2_timer.cc:35
void initialize_data()
Request event notification for CD_SIMULATION_STEP_EVENT.
Definition: l2_timer.cc:17