Spacecraft Control Bundle 1
fsw_time.h
1/*
2 * Header file for object of class fsw_time.
3 * Copyright 2008, 2010, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8
9#ifndef FSW_TIME
10#define FSW_TIME
11
20class fsw_time : public cd_control_module
21{
22 public:
24 fsw_time (const char * mod_name);
25 void initialize_data();
26 void initialize();
27 void handle_event(int code);
28
29 protected:
33 CD_REQUEST_REF jd_sim_ref;
35
39 CD_CREATE_REF jd_ref;
41
42};
43
44extern "C"
45{
46 cd_control_module *fsw_time_builder(const char *name);
47}
48
49#endif
The onboard clock model.
Definition: fsw_time.h:21
void initialize()
One time initialization.
Definition: fsw_time.cc:30
CD_CREATE_REF jd_ref
Julian date output.
Definition: fsw_time.h:39
fsw_time(const char *mod_name)
Constructor.
Definition: fsw_time.cc:10
void handle_event(int code)
Check for a valid sim jD and update the measured output.
Definition: fsw_time.cc:50
CD_REQUEST_REF jd_sim_ref
Julian date from simulation.
Definition: fsw_time.h:33
void initialize_data()
Creates the "jd" variable and creates the FSW_TIME_TRIGGER event notification.
Definition: fsw_time.cc:18