Spacecraft Control Bundle 1
fsw_torque_distribution Class Reference

Distribute torque commands to the thrusters and reaction wheels. More...

#include <fsw_torque_distribution.h>

Inheritance diagram for fsw_torque_distribution:

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...
 

Detailed Description

Distribute torque commands to the thrusters and reaction wheels.

Modes for control are:

  • Reaction wheel only
  • Reaction control system only
  • Mixed reaction wheels and thrusters

Uses simplex to convert torque commands to reaction wheel voltage and thruster pulsewidth commands. Accommodates simultaneous guidance commands.

Member Function Documentation

◆ initialize_data()

Member Data Documentation

◆ acs_torque_demand_ref

CD_REQUEST_REF fsw_torque_distribution::acs_torque_demand_ref
protected

The torque demand for all attitude control.

◆ center_of_mass_ref

CD_REQUEST_REF fsw_torque_distribution::center_of_mass_ref
protected

Center of mass.

◆ control_period_ref

CD_REQUEST_REF fsw_torque_distribution::control_period_ref
protected

Control period command (double)

◆ guidance_orbit_force_ref

CD_REQUEST_REF fsw_torque_distribution::guidance_orbit_force_ref
protected

RCS force demand.

◆ guidance_pulsewidth_demand_ref

CD_REQUEST_REF fsw_torque_distribution::guidance_pulsewidth_demand_ref
protected

Guidance pulsewidth demand.

◆ guidance_thruster_command_ref

CD_REQUEST_REF fsw_torque_distribution::guidance_thruster_command_ref
protected

Guidance thruster set.

◆ guidance_use_rcs_command_ref

CD_REQUEST_REF fsw_torque_distribution::guidance_use_rcs_command_ref
protected

Use the RCS system for delta V (int)

◆ prop_simplex_failed_ref

CD_CREATE_REF fsw_torque_distribution::prop_simplex_failed_ref
protected

Flag to indicate that simplex failed to converge (int)

Referenced by initialize_data().

◆ prop_tank_pressure_ref

CD_REQUEST_REF fsw_torque_distribution::prop_tank_pressure_ref
protected

Propellant tank pressure (double)

◆ prop_thruster_coefficients_ref

CD_REQUEST_REF fsw_torque_distribution::prop_thruster_coefficients_ref
protected

Thruster thrust coefficients.

◆ prop_thruster_directions_ref

CD_REQUEST_REF fsw_torque_distribution::prop_thruster_directions_ref
protected

Thruster force directions.

◆ prop_thruster_positions_ref

CD_REQUEST_REF fsw_torque_distribution::prop_thruster_positions_ref
protected

Thruster positions.

◆ prop_thruster_pulsewidth_demand_ref

CD_REQUEST_REF fsw_torque_distribution::prop_thruster_pulsewidth_demand_ref
protected

Pulsewidth demand to send to propulsion hardware.

◆ rwa_inertia_ref

CD_REQUEST_REF fsw_torque_distribution::rwa_inertia_ref
protected

Reaction wheel inertia (double)

◆ rwa_max_voltage_ref

CD_REQUEST_REF fsw_torque_distribution::rwa_max_voltage_ref
protected

RWA maximum voltage (double)

◆ rwa_rate_ref

CD_REQUEST_REF fsw_torque_distribution::rwa_rate_ref
protected

Reaction wheel rates.

◆ rwa_torque_constant_ref

CD_REQUEST_REF fsw_torque_distribution::rwa_torque_constant_ref
protected

RWA torque constant (double)

◆ rwa_unit_vector_ref

CD_REQUEST_REF fsw_torque_distribution::rwa_unit_vector_ref
protected

Guidance mode (int)

RWA unit vector

◆ rwa_voltage_demand_ref

CD_REQUEST_REF fsw_torque_distribution::rwa_voltage_demand_ref
protected

RWA Voltage Demand.


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