Spacecraft Control Bundle 1
fsw_stored_command_processing Class Reference

Command processing from a script. More...

#include <fsw_stored_command_processing.h>

Inheritance diagram for fsw_stored_command_processing:

Classes

struct  command_struct
 Store commands in the data structure. More...
 

Public Member Functions

 fsw_stored_command_processing (const char *mod_name)
 
void initialize_data ()
 Create data and request the FSW_STORED_COMMAND_PROCESSING_TRIGGER. More...
 
void initialize ()
 
void handle_event (int code)
 

Protected Types

typedef struct fsw_stored_command_processing::command_struct Command
 Store commands in the data structure. More...
 

Protected Member Functions

void read_command_list ()
 

Protected Attributes

CommandcommandList
 
char * current_command_list
 
int currentCommand
 
Inputs
CD_REQUEST_REF jd_ref
 
CD_REQUEST_REF mm_gain_command_ref
 
CD_REQUEST_REF acs_rwa_unit_vector_command_ref
 
CD_REQUEST_REF acs_rwa_inertia_command_ref
 
CD_REQUEST_REF acs_actuator_selection_command_ref
 
CD_REQUEST_REF acs_rwa_pinv_command_ref
 
CD_REQUEST_REF mm_period_command_ref
 
CD_REQUEST_REF mm_dipole_command_ref
 
CD_REQUEST_REF acs_attitude_gain_a_command_ref
 
CD_REQUEST_REF acs_attitude_gain_b_command_ref
 
CD_REQUEST_REF acs_attitude_gain_c_command_ref
 
CD_REQUEST_REF acs_attitude_gain_d_command_ref
 
CD_REQUEST_REF acs_q_eci_to_body_command_ref
 
CD_REQUEST_REF acs_omega_command_ref
 
CD_REQUEST_REF acs_eci_align_axis_command_ref
 
CD_REQUEST_REF acs_body_align_axis_command_ref
 
CD_REQUEST_REF acs_rotate_axis_command_ref
 
CD_REQUEST_REF acs_rotate_angle_command_ref
 
CD_REQUEST_REF acs_control_mode_command_ref
 
CD_REQUEST_REF acs_solar_system_target_command_ref
 
CD_REQUEST_REF acs_body_rate_gain_command_ref
 
CD_REQUEST_REF acs_control_period_command_ref
 
CD_REQUEST_REF acs_axis_rate_command_ref
 
CD_REQUEST_REF acs_planet_target_command_ref
 
CD_REQUEST_REF acs_maximum_delta_angle_command_ref
 
CD_REQUEST_REF acs_q_nadir_offset_command_ref
 
Outputs
CD_CREATE_REF command_list_ref
 
CD_CREATE_REF command_list_command_ref
 
CD_CREATE_REF command_list_process_ref
 

Detailed Description

Command processing from a script.

This module processes commands. Commands are any CD_REQUEST_REF designated as a command Usually we have the suffix _command for those points that the user wants to upload to the satellite. Adding a command requires 4 code entries. For example for

mm_gain_command_ref

In the header:

CD_REQUEST_REF mm_gain_command_ref;

In the body The dictionary

static struct inputEntry commandDictionary[] = {
{"mm_gain_command", 0},
Input entry type for command processing.
Definition: fsw_stored_command_processing.cc:19

In the initialize method

mm_gain_command_ref = request_data( NULL, "mm_gain_command", sd_type_double);

In the handle event method

case 0:
if( command_data.cols() > 1 ) command_data.transpose();
set_value_as_type( mm_gain_command_ref, sd_type_double, &command_data_double );
break;

All data is entered as matrices, i.e. [0;0;0]. The transpose makes sure the data is column matrix.

An example command list is shown below.

//! Start 11/04/2011 00:01:00
//! #------------------
//! # Delta-V maneuver
//! #------------------
//! 00:00:01 mm_gain_command [0.01]
//! 00:00:02 mm_period_command [10]
//! 00:00:03 mm_dipole_command [1 0;0 1;0 0]
//! 
The full file path is sent from the command page
\ingroup TTC 

Member Typedef Documentation

◆ Command

Store commands in the data structure.

Member Function Documentation

◆ initialize_data()

void fsw_stored_command_processing::initialize_data ( )

The documentation for this class was generated from the following files: