Spacecraft Control Bundle 1
fsw_ephemeris.h
1/*
2 * Header file for object of class es_template.
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_EPHEMERIS
12#define FSW_EPHEMERIS
13
30class fsw_ephemeris : public cd_control_module
31{
32 public:
33 fsw_ephemeris (const char * mod_name);
34 void initialize_data();
36 void handle_event(int code);
37
38 protected:
39
44 CD_REQUEST_REF observer_sim_ref;
48 CD_REQUEST_REF planet_index_sim_ref;
54 CD_REQUEST_REF planet_mu_sim_ref;
56 CD_REQUEST_REF planet_radius_sim_ref;
60 CD_REQUEST_REF od_state_ref;
62
66 CD_CREATE_REF ephem_planet_mu_ref;
68 CD_CREATE_REF ephem_observer_ref;
80 CD_CREATE_REF ephem_sun_vector_ref;
82
83
84
85};
86
87extern "C"
88{
89 cd_control_module *fsw_ephemeris_builder(const char *name);
90}
91
92#endif
This class gets the ephemeris from the simulation.
Definition: fsw_ephemeris.h:31
void handle_event(int code)
Get the ephemeris data from the sim variables and set the outputs.
Definition: fsw_ephemeris.cc:75
CD_CREATE_REF ephem_planet_rotation_matrix_ref
Rotation matrix - module output.
Definition: fsw_ephemeris.h:70
CD_CREATE_REF ephem_planet_position_ref
Planet position - module output.
Definition: fsw_ephemeris.h:74
CD_REQUEST_REF planet_index_sim_ref
SPICE id of planet - sim input.
Definition: fsw_ephemeris.h:48
CD_CREATE_REF ephem_planet_velocity_ref
Planet velocity - module output.
Definition: fsw_ephemeris.h:72
CD_CREATE_REF ephem_planet_index_ref
Planet index (1,n) - module output.
Definition: fsw_ephemeris.h:76
CD_REQUEST_REF position_planet_sim_ref
Planet position - sim input.
Definition: fsw_ephemeris.h:50
CD_REQUEST_REF velocity_planet_sim_ref
Planet velocity - sim input.
Definition: fsw_ephemeris.h:52
CD_REQUEST_REF rotation_matrix_planet_sim_ref
Rotation matrix of planet. 9x1 in row major form. - sim input.
Definition: fsw_ephemeris.h:46
CD_REQUEST_REF planet_mu_sim_ref
Planet gravitional constant - sim input.
Definition: fsw_ephemeris.h:54
CD_CREATE_REF ephem_sun_vector_ref
Sun vector - module output.
Definition: fsw_ephemeris.h:80
CD_CREATE_REF ephem_observer_ref
Observer (int)
Definition: fsw_ephemeris.h:68
CD_REQUEST_REF od_state_ref
State estimate - module input.
Definition: fsw_ephemeris.h:60
void initialize_data_requests()
Request the ephemeris simulation variables and the orbit state.
Definition: fsw_ephemeris.cc:58
CD_REQUEST_REF planet_radius_sim_ref
Planet radius - sim input.
Definition: fsw_ephemeris.h:56
CD_CREATE_REF ephem_planet_mu_ref
Planet mu (1,n) - module output.
Definition: fsw_ephemeris.h:66
CD_CREATE_REF ephem_planet_radius_ref
Planet radius - module output.
Definition: fsw_ephemeris.h:78
CD_REQUEST_REF observer_sim_ref
The reference system center - sim input (int)
Definition: fsw_ephemeris.h:44
void initialize_data()
Create data and request event notification for FSW_EPHEMERIS_TRIGGER.
Definition: fsw_ephemeris.cc:16
Define the data names used throughout the control system.
Define the trigger and variables names for the software system.