Spacecraft Control Bundle 1
|
Command processing from a script. More...
#include <fsw_stored_command_processing.h>
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 | |
Command * | commandList |
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 |
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:
In the body The dictionary
In the initialize method
In the handle event method
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
|
protected |
Store commands in the data structure.
void fsw_stored_command_processing::initialize_data | ( | ) |
Create data and request the FSW_STORED_COMMAND_PROCESSING_TRIGGER.
References FSW_STORED_COMMAND_PROCESSING_TRIGGER.