Spacecraft Control Bundle 1
sc_data_names.h
Go to the documentation of this file.
1//
6//
7// Created by Stephanie Thomas on 2/10/16.
8//
9//
10
11#include <ControlDeck2/ControlDeck2.h>
12
13#ifndef SC_data_names_h
14#define SC_data_names_h
15
17#ifndef TYPED_DATA
18#define TYPED_DATA(x) x.path, x.type
19#endif
20
23typedef struct sc_data {
25 const char * const path;
27 const int type;
29 operator const char * () const {return path;}
31
38const SC_DATA acs_control_period_command = {"acs_control_period_command",sd_type_double};
40const SC_DATA camera_data_command = {"camera_data_command",sd_type_matrix};
41
42//-------------------------------------------
43// EPHEMERIS
44//-------------------------------------------
46const SC_DATA ephem_planet_mu = {"ephem_planet_mu",sd_type_matrix};
48const SC_DATA ephem_observer = {"ephem_observer",sd_type_int};
50const SC_DATA ephem_planet_rotation_matrix = {"ephem_planet_rotation_matrix",sd_type_matrix};
52const SC_DATA ephem_planet_position = {"ephem_planet_position",sd_type_matrix};
54const SC_DATA ephem_planet_velocity = {"ephem_planet_velocity",sd_type_matrix};
56const SC_DATA ephem_planet_index = {"ephem_planet_index",sd_type_matrix};
58const SC_DATA ephem_planet_radius = {"ephem_planet_radius",sd_type_matrix};
60const SC_DATA ephem_sun_vector = {"ephem_sun_vector",sd_type_matrix};
62const SC_DATA star_visual_magnitude = {"star_visual_magnitude",sd_type_matrix};
64const SC_DATA star_unit_vectors = {"star_unit_vectors",sd_type_matrix};
66const SC_DATA ephem_hipparcos_ids = {"ephem_hipparcos_ids",sd_type_intarray};
67
68//-------------------------------------------
69// MASS PROPERTIES
70//-------------------------------------------
72const SC_DATA inertia = {"inertia",sd_type_matrix};
74const SC_DATA center_of_mass = {"center_of_mass",sd_type_matrix};
76const SC_DATA mass = {"mass",sd_type_double};
77
78//-------------------------------------------
79// CLOCK
80//-------------------------------------------
82const SC_DATA julian_date = {"jd",sd_type_double};
83
84//-------------------------------------------
85// STAR ID
86//-------------------------------------------
87// Star IDs, (1,n) matrix
88const SC_DATA star_id_camera_1 = {"star_id_camera_1", sd_type_matrix};
90const SC_DATA u_star_camera_1 = {"u_star_camera_1", sd_type_matrix};
91
92//-------------------------------------------
93// ATTITUDE DETERMINATION
94//-------------------------------------------
96const SC_DATA ad_q_eci_to_body = {"ad_q_eci_to_body", sd_type_matrix};
97const SC_DATA ad_initial_state_command = {"ad_initial_state_command", sd_type_matrix};
98const SC_DATA ad_gyro_bias_camera = {"ad_gyro_bias_camera", sd_type_matrix};
99const SC_DATA ad_covariance_camera = {"ad_covariance_camera", sd_type_matrix};
100const SC_DATA ad_q_eci_to_camera_single_frame = {"ad_q_eci_to_camera_single_frame", sd_type_matrix};
101const SC_DATA ad_parameter_command = {"ad_parameter_command", sd_type_matrix};
102const SC_DATA ad_plant_noise_covariance_command = {"ad_plant_noise_covariance_command", sd_type_matrix};
103const SC_DATA ad_meas_noise_covariance_command = {"ad_meas_noise_covariance_command", sd_type_matrix};
104const SC_DATA ad_initial_covariance_command = {"ad_initial_covariance_command", sd_type_matrix};
105const SC_DATA ad_reset_command = {"ad_reset_command", sd_type_int};
106const SC_DATA ad_use_single_frame_command = {"ad_use_single_frame_command", sd_type_int};
107const SC_DATA ad_q_camera_to_body_command = {"ad_q_camera_to_body_command", sd_type_matrix};
108
109//-------------------------------------------
110// ORBIT DETERMINATION
111//-------------------------------------------
116const SC_DATA od_state = {"od:state", sd_type_matrix};
117
118//-------------------------------------------
119// HARDWARE PROCESSING
120//-------------------------------------------
121const SC_DATA camera_rate_meas = {"camera_rate_meas", sd_type_matrix};
123const SC_DATA star_data_1 = {"star_data_1", sd_type_matrix};
124
125//-------------------------------------------
126// SOLAR WING CONTROL
127
129
132#ifndef q_eci_to_body_sim
133#define q_eci_to_body_sim "q_eci_to_body_sim"
134#endif
135#ifndef position_sim
136#define position_sim "position_sim"
137#endif
138#ifndef velocity_sim
139#define velocity_sim "velocity_sim"
140#endif
141#define body_rate_camera_sim "body_rate_camera_sim"
142#define inertia_sim "inertia_sim"
143#define mass_sim "mass_sim"
144#define center_of_mass_sim "center_of_mass_sim"
145#define rwa_rate_sim "rwa_rate_sim"
146#define centroid_camera_sim "centroid_camera_sim"
147#define frame_camera_sim "frame_camera_sim"
148#define gps_message_sim "gps_message_sim"
150
151#endif
const SC_DATA ephem_hipparcos_ids
Star Hipparcos IDs, 1xn.
Definition: sc_data_names.h:66
const SC_DATA camera_data_command
Camera data command.
Definition: sc_data_names.h:40
const SC_DATA u_star_camera_1
Star unit vectors are a 3 by n matrix.
Definition: sc_data_names.h:90
const SC_DATA ephem_observer
Ephemeris observer (int)
Definition: sc_data_names.h:48
const SC_DATA inertia
Spacecraft inertia.
Definition: sc_data_names.h:72
const SC_DATA ephem_sun_vector
Sun unit vector.
Definition: sc_data_names.h:60
const SC_DATA od_state
Estimated orbit state (6x1 matrix).
Definition: sc_data_names.h:116
const SC_DATA ad_q_eci_to_body
Estimated inertial to body quaternion (4x1)
Definition: sc_data_names.h:96
const SC_DATA ephem_planet_position
Planet position vectors.
Definition: sc_data_names.h:52
const SC_DATA ephem_planet_radius
Planet radii.
Definition: sc_data_names.h:58
const SC_DATA star_visual_magnitude
Star visual magnitudes, 1xn.
Definition: sc_data_names.h:62
const SC_DATA acs_control_period_command
Most timers run after the ACS control period.
Definition: sc_data_names.h:38
const SC_DATA ephem_planet_velocity
Planet velocities.
Definition: sc_data_names.h:54
struct sc_data SC_DATA
Data point names and type.
const SC_DATA center_of_mass
Spacecraft center of mass.
Definition: sc_data_names.h:74
const SC_DATA ephem_planet_rotation_matrix
Planet rotation matices.
Definition: sc_data_names.h:50
const SC_DATA star_unit_vectors
Star unit vectors, 3xn.
Definition: sc_data_names.h:64
const SC_DATA ephem_planet_mu
Planet gravitational parameters.
Definition: sc_data_names.h:46
const SC_DATA star_data_1
Star data is a (4,n) matrix of [x;y;intensity;ID].
Definition: sc_data_names.h:123
const SC_DATA ephem_planet_index
Planet index.
Definition: sc_data_names.h:56
const SC_DATA julian_date
Julian date.
Definition: sc_data_names.h:82
const SC_DATA mass
Spacecraft total mass (double)
Definition: sc_data_names.h:76
Data point names and type.
Definition: sc_data_names.h:23
const int type
Integer data type.
Definition: sc_data_names.h:27
const char *const path
Name or ControlDeck path to the data point.
Definition: sc_data_names.h:25