Spacecraft Control Bundle 1
|
Distribute torque commands to the thrusters and reaction wheels. More...
#include <fsw_torque_distribution.h>
Public Member Functions | |
fsw_torque_distribution (const char *mod_name) | |
void | initialize_data () |
Request event notification for FSW_TORQUE_DISTRIBUTION_TRIGGER. More... | |
void | initialize () |
void | handle_event (int code) |
Protected Attributes | |
int | pulse_count |
DST Inputs | |
| |
CD_REQUEST_REF | guidance_thruster_command_ref |
Guidance thruster set. More... | |
CD_REQUEST_REF | acs_torque_demand_ref |
The torque demand for all attitude control. More... | |
CD_REQUEST_REF | prop_thruster_directions_ref |
Thruster force directions. More... | |
CD_REQUEST_REF | prop_thruster_positions_ref |
Thruster positions. More... | |
CD_REQUEST_REF | prop_thruster_coefficients_ref |
Thruster thrust coefficients. More... | |
CD_REQUEST_REF | prop_tank_pressure_ref |
Propellant tank pressure (double) More... | |
CD_REQUEST_REF | center_of_mass_ref |
Center of mass. More... | |
CD_REQUEST_REF | guidance_pulsewidth_demand_ref |
Guidance pulsewidth demand. More... | |
CD_REQUEST_REF | guidance_orbit_force_ref |
RCS force demand. More... | |
CD_REQUEST_REF | guidance_thruster_mode_ref |
CD_REQUEST_REF | rwa_unit_vector_ref |
Guidance mode (int) More... | |
CD_REQUEST_REF | rwa_torque_constant_ref |
RWA torque constant (double) More... | |
CD_REQUEST_REF | rwa_max_voltage_ref |
RWA maximum voltage (double) More... | |
CD_REQUEST_REF | control_period_ref |
Control period command (double) More... | |
CD_REQUEST_REF | rwa_rate_ref |
Reaction wheel rates. More... | |
CD_REQUEST_REF | rwa_inertia_ref |
Reaction wheel inertia (double) More... | |
CD_REQUEST_REF | guidance_use_rcs_command_ref |
Use the RCS system for delta V (int) More... | |
DST Outputs | |
| |
CD_CREATE_REF | prop_simplex_failed_ref |
Flag to indicate that simplex failed to converge (int) More... | |
DST Assignments | |
| |
CD_REQUEST_REF | prop_thruster_pulsewidth_demand_ref |
Pulsewidth demand to send to propulsion hardware. More... | |
CD_REQUEST_REF | rwa_voltage_demand_ref |
RWA Voltage Demand. More... | |
DST Commands | |
| |
CD_CREATE_REF | acs_actuator_selection_command_ref |
Command to use different actuators. More... | |
CD_CREATE_REF | acs_rwa_pinv_command_ref |
Pseudo-inverse for reaction wheels. More... | |
CD_CREATE_REF | acs_thruster_command_ref |
ACS thruster set. More... | |
CD_CREATE_REF | thruster_period_mult_command_ref |
Pulsing periods. More... | |
CD_CREATE_REF | rwa_command_ref |
RWAs to use. More... | |
Distribute torque commands to the thrusters and reaction wheels.
Modes for control are:
Uses simplex to convert torque commands to reaction wheel voltage and thruster pulsewidth commands. Accommodates simultaneous guidance commands.
void fsw_torque_distribution::initialize_data | ( | ) |
Request event notification for FSW_TORQUE_DISTRIBUTION_TRIGGER.
References acs_actuator_selection_command_ref, acs_rwa_pinv_command_ref, acs_thruster_command_ref, FSW_TORQUE_DISTRIBUTION_TRIGGER, prop_simplex_failed_ref, rwa_command_ref, and thruster_period_mult_command_ref.
|
protected |
The torque demand for all attitude control.
|
protected |
Center of mass.
|
protected |
Control period command (double)
|
protected |
RCS force demand.
|
protected |
Guidance pulsewidth demand.
|
protected |
Guidance thruster set.
|
protected |
Use the RCS system for delta V (int)
|
protected |
Flag to indicate that simplex failed to converge (int)
Referenced by initialize_data().
|
protected |
Propellant tank pressure (double)
|
protected |
Thruster thrust coefficients.
|
protected |
Thruster force directions.
|
protected |
Thruster positions.
|
protected |
Pulsewidth demand to send to propulsion hardware.
|
protected |
Reaction wheel inertia (double)
|
protected |
RWA maximum voltage (double)
|
protected |
Reaction wheel rates.
|
protected |
RWA torque constant (double)
|
protected |
Guidance mode (int)
RWA unit vector
|
protected |
RWA Voltage Demand.