Spacecraft Control Bundle 1
sc_data_names.h File Reference

Define the data names used throughout the control system. More...

#include <ControlDeck2/ControlDeck2.h>

Go to the source code of this file.

Classes

struct  sc_data
 Data point names and type. More...
 

Macros

#define TYPED_DATA(x)   x.path, x.type
 Specify a data point with its type. More...
 
#define q_eci_to_body_sim   "q_eci_to_body_sim"
 Simulation mapped variables. More...
 
#define position_sim   "position_sim"
 
#define velocity_sim   "velocity_sim"
 
#define body_rate_camera_sim   "body_rate_camera_sim"
 
#define inertia_sim   "inertia_sim"
 
#define mass_sim   "mass_sim"
 
#define center_of_mass_sim   "center_of_mass_sim"
 
#define rwa_rate_sim   "rwa_rate_sim"
 
#define centroid_camera_sim   "centroid_camera_sim"
 
#define frame_camera_sim   "frame_camera_sim"
 
#define gps_message_sim   "gps_message_sim"
 

Typedefs

typedef struct sc_data SC_DATA
 Data point names and type. More...
 

Variables

Data Point Names

The data names are needed both when modules define data points and when other modules wish to access them.

Therefore to provide compile-time detection of errors we define these names a priori.

const SC_DATA acs_control_period_command = {"acs_control_period_command",sd_type_double}
 Most timers run after the ACS control period. More...
 
const SC_DATA camera_data_command = {"camera_data_command",sd_type_matrix}
 Camera data command. More...
 
const SC_DATA ephem_planet_mu = {"ephem_planet_mu",sd_type_matrix}
 Planet gravitational parameters. More...
 
const SC_DATA ephem_observer = {"ephem_observer",sd_type_int}
 Ephemeris observer (int) More...
 
const SC_DATA ephem_planet_rotation_matrix = {"ephem_planet_rotation_matrix",sd_type_matrix}
 Planet rotation matices. More...
 
const SC_DATA ephem_planet_position = {"ephem_planet_position",sd_type_matrix}
 Planet position vectors. More...
 
const SC_DATA ephem_planet_velocity = {"ephem_planet_velocity",sd_type_matrix}
 Planet velocities. More...
 
const SC_DATA ephem_planet_index = {"ephem_planet_index",sd_type_matrix}
 Planet index. More...
 
const SC_DATA ephem_planet_radius = {"ephem_planet_radius",sd_type_matrix}
 Planet radii. More...
 
const SC_DATA ephem_sun_vector = {"ephem_sun_vector",sd_type_matrix}
 Sun unit vector. More...
 
const SC_DATA star_visual_magnitude = {"star_visual_magnitude",sd_type_matrix}
 Star visual magnitudes, 1xn. More...
 
const SC_DATA star_unit_vectors = {"star_unit_vectors",sd_type_matrix}
 Star unit vectors, 3xn. More...
 
const SC_DATA ephem_hipparcos_ids = {"ephem_hipparcos_ids",sd_type_intarray}
 Star Hipparcos IDs, 1xn. More...
 
const SC_DATA inertia = {"inertia",sd_type_matrix}
 Spacecraft inertia. More...
 
const SC_DATA center_of_mass = {"center_of_mass",sd_type_matrix}
 Spacecraft center of mass. More...
 
const SC_DATA mass = {"mass",sd_type_double}
 Spacecraft total mass (double) More...
 
const SC_DATA julian_date = {"jd",sd_type_double}
 Julian date. More...
 
const SC_DATA star_id_camera_1 = {"star_id_camera_1", sd_type_matrix}
 
const SC_DATA u_star_camera_1 = {"u_star_camera_1", sd_type_matrix}
 Star unit vectors are a 3 by n matrix. More...
 
const SC_DATA ad_q_eci_to_body = {"ad_q_eci_to_body", sd_type_matrix}
 Estimated inertial to body quaternion (4x1) More...
 
const SC_DATA ad_initial_state_command = {"ad_initial_state_command", sd_type_matrix}
 
const SC_DATA ad_gyro_bias_camera = {"ad_gyro_bias_camera", sd_type_matrix}
 
const SC_DATA ad_covariance_camera = {"ad_covariance_camera", sd_type_matrix}
 
const SC_DATA ad_q_eci_to_camera_single_frame = {"ad_q_eci_to_camera_single_frame", sd_type_matrix}
 
const SC_DATA ad_parameter_command = {"ad_parameter_command", sd_type_matrix}
 
const SC_DATA ad_plant_noise_covariance_command = {"ad_plant_noise_covariance_command", sd_type_matrix}
 
const SC_DATA ad_meas_noise_covariance_command = {"ad_meas_noise_covariance_command", sd_type_matrix}
 
const SC_DATA ad_initial_covariance_command = {"ad_initial_covariance_command", sd_type_matrix}
 
const SC_DATA ad_reset_command = {"ad_reset_command", sd_type_int}
 
const SC_DATA ad_use_single_frame_command = {"ad_use_single_frame_command", sd_type_int}
 
const SC_DATA ad_q_camera_to_body_command = {"ad_q_camera_to_body_command", sd_type_matrix}
 
const SC_DATA od_state = {"od:state", sd_type_matrix}
 Estimated orbit state (6x1 matrix). More...
 
const SC_DATA camera_rate_meas = {"camera_rate_meas", sd_type_matrix}
 
const SC_DATA star_data_1 = {"star_data_1", sd_type_matrix}
 Star data is a (4,n) matrix of [x;y;intensity;ID]. More...
 

Detailed Description

Define the data names used throughout the control system.

Macro Definition Documentation

◆ q_eci_to_body_sim

#define q_eci_to_body_sim   "q_eci_to_body_sim"

Simulation mapped variables.

◆ TYPED_DATA

#define TYPED_DATA (   x)    x.path, x.type

Specify a data point with its type.

Typedef Documentation

◆ SC_DATA

typedef struct sc_data SC_DATA

Data point names and type.

Simple aggregate class.

Variable Documentation

◆ acs_control_period_command

const SC_DATA acs_control_period_command = {"acs_control_period_command",sd_type_double}

Most timers run after the ACS control period.

Referenced by fsw_attitude_control::initialize_data(), and cs_timer::initialize_data_requests().

◆ ad_q_eci_to_body

const SC_DATA ad_q_eci_to_body = {"ad_q_eci_to_body", sd_type_matrix}

Estimated inertial to body quaternion (4x1)

Referenced by fsw_attitude_determination::initialize_data(), and fsw_attitude_determination_ideal::initialize_data().

◆ camera_data_command

const SC_DATA camera_data_command = {"camera_data_command",sd_type_matrix}

Camera data command.

◆ center_of_mass

const SC_DATA center_of_mass = {"center_of_mass",sd_type_matrix}

Spacecraft center of mass.

Referenced by fsw_mass::initialize_data().

◆ ephem_hipparcos_ids

const SC_DATA ephem_hipparcos_ids = {"ephem_hipparcos_ids",sd_type_intarray}

◆ ephem_observer

const SC_DATA ephem_observer = {"ephem_observer",sd_type_int}

Ephemeris observer (int)

Referenced by fsw_ephemeris::initialize_data().

◆ ephem_planet_index

const SC_DATA ephem_planet_index = {"ephem_planet_index",sd_type_matrix}

Planet index.

Referenced by fsw_ephemeris::initialize_data().

◆ ephem_planet_mu

const SC_DATA ephem_planet_mu = {"ephem_planet_mu",sd_type_matrix}

Planet gravitational parameters.

Referenced by fsw_ephemeris::initialize_data().

◆ ephem_planet_position

const SC_DATA ephem_planet_position = {"ephem_planet_position",sd_type_matrix}

Planet position vectors.

Referenced by fsw_ephemeris::initialize_data().

◆ ephem_planet_radius

const SC_DATA ephem_planet_radius = {"ephem_planet_radius",sd_type_matrix}

Planet radii.

Referenced by fsw_ephemeris::initialize_data().

◆ ephem_planet_rotation_matrix

const SC_DATA ephem_planet_rotation_matrix = {"ephem_planet_rotation_matrix",sd_type_matrix}

Planet rotation matices.

Referenced by fsw_ephemeris::initialize_data().

◆ ephem_planet_velocity

const SC_DATA ephem_planet_velocity = {"ephem_planet_velocity",sd_type_matrix}

Planet velocities.

Referenced by fsw_ephemeris::initialize_data().

◆ ephem_sun_vector

const SC_DATA ephem_sun_vector = {"ephem_sun_vector",sd_type_matrix}

Sun unit vector.

Referenced by fsw_ephemeris::initialize_data().

◆ inertia

const SC_DATA inertia = {"inertia",sd_type_matrix}

Spacecraft inertia.

Referenced by fsw_euler_torque::handle_event(), and fsw_mass::initialize_data().

◆ julian_date

◆ mass

const SC_DATA mass = {"mass",sd_type_double}

Spacecraft total mass (double)

Referenced by fsw_mass::initialize_data().

◆ od_state

const SC_DATA od_state = {"od:state", sd_type_matrix}

Estimated orbit state (6x1 matrix).

Consists of [r;v] in km and km/s.

Parameters
path"od_state"
typesd_type_matrix

Referenced by fsw_attitude_determination_multi_sensor::handle_event(), fsw_attitude_determination_sun_star::handle_event(), fsw_ephemeris::handle_event(), and fsw_orbit_determination_ideal::initialize_data().

◆ star_data_1

const SC_DATA star_data_1 = {"star_data_1", sd_type_matrix}

Star data is a (4,n) matrix of [x;y;intensity;ID].

◆ star_unit_vectors

const SC_DATA star_unit_vectors = {"star_unit_vectors",sd_type_matrix}

◆ star_visual_magnitude

const SC_DATA star_visual_magnitude = {"star_visual_magnitude",sd_type_matrix}

◆ u_star_camera_1

const SC_DATA u_star_camera_1 = {"u_star_camera_1", sd_type_matrix}

Star unit vectors are a 3 by n matrix.