Spacecraft Control Bundle 1
fsw_orbit_meas.h
1/*
2 * Header file for object of class fsw_orbit_meas.
3 * Copyright 2010, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8#include "sc_events.h"
9#include "sc_data_names.h"
10
11#ifndef FSW_ORBIT_MEAS
12#define FSW_ORBIT_MEAS
13
14
16
21class fsw_orbit_meas : public cd_control_module
22{
23 public:
24 fsw_orbit_meas (const char * mod_name);
25 void initialize_data();
26 void initialize_data_requests();
27 void handle_event(int code);
28
29 protected:
31 CD_CREATE_REF od_state_ref;
32
34 CD_REQUEST_REF position_sim_ref;
36 CD_REQUEST_REF velocity_sim_ref;
37
38};
39
40extern "C"
41{
42 cd_control_module *fsw_orbit_meas_builder(const char *name);
43}
44
45#endif
This module outputs a state vector.
Definition: fsw_orbit_meas.h:22
void handle_event(int code)
Take the simulation values for position and velocity and stack them to produce an orbit state vector.
Definition: fsw_orbit_meas.cc:33
CD_REQUEST_REF position_sim_ref
Simulated position (3x1)
Definition: fsw_orbit_meas.h:34
CD_CREATE_REF od_state_ref
Orbit state output (6x1)
Definition: fsw_orbit_meas.h:31
CD_REQUEST_REF velocity_sim_ref
Simulated velocity (3x1)
Definition: fsw_orbit_meas.h:36
void initialize_data()
Request event notification for FSW_ORBIT_DETERMINATION_TRIGGER.
Definition: fsw_orbit_meas.cc:15
Define the data names used throughout the control system.
Define the trigger and variables names for the software system.