Spacecraft Control Bundle 1
fsw_torque_distribution.h
1/*
2 * Header file for object of class es_template.
3 * Copyright 2010, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8#include "sc_events.h"
9
10#ifndef FSW_TORQUE_DISTRIBUTION
11#define FSW_TORQUE_DISTRIBUTION
12
14
24class fsw_torque_distribution : public cd_control_module
25{
26 public:
27 fsw_torque_distribution (const char * mod_name);
28 void initialize_data();
29 void initialize();
30 void handle_event(int code);
31
32 protected:
36 CD_REQUEST_REF acs_torque_demand_ref;
37
41 CD_REQUEST_REF prop_tank_pressure_ref;
42 CD_REQUEST_REF center_of_mass_ref;
43
45 CD_REQUEST_REF guidance_orbit_force_ref;
46 CD_REQUEST_REF guidance_thruster_mode_ref;
47 CD_REQUEST_REF rwa_unit_vector_ref;
48 CD_REQUEST_REF rwa_torque_constant_ref;
49 CD_REQUEST_REF rwa_max_voltage_ref;
50 CD_REQUEST_REF control_period_ref;
51 CD_REQUEST_REF rwa_rate_ref;
52 CD_REQUEST_REF rwa_inertia_ref;
55
59 // currently never set (SJT, 2/2/2016)
62
63 // Outputs set on external data points
66
68 CD_REQUEST_REF rwa_voltage_demand_ref;
70
71 // Inputs read from internal data points
74
79 CD_CREATE_REF rwa_command_ref;
81
82 int pulse_count;
83
84};
85
86extern "C"
87{
88 cd_control_module *fsw_torque_distribution_builder(const char *name);
89}
90
91#endif
Distribute torque commands to the thrusters and reaction wheels.
Definition: fsw_torque_distribution.h:25
CD_REQUEST_REF rwa_unit_vector_ref
Guidance mode (int)
Definition: fsw_torque_distribution.h:47
CD_REQUEST_REF guidance_orbit_force_ref
RCS force demand.
Definition: fsw_torque_distribution.h:45
CD_REQUEST_REF center_of_mass_ref
Center of mass.
Definition: fsw_torque_distribution.h:42
CD_CREATE_REF prop_simplex_failed_ref
Flag to indicate that simplex failed to converge (int)
Definition: fsw_torque_distribution.h:60
CD_REQUEST_REF prop_thruster_pulsewidth_demand_ref
Pulsewidth demand to send to propulsion hardware.
Definition: fsw_torque_distribution.h:67
CD_REQUEST_REF prop_tank_pressure_ref
Propellant tank pressure (double)
Definition: fsw_torque_distribution.h:41
CD_REQUEST_REF guidance_use_rcs_command_ref
Use the RCS system for delta V (int)
Definition: fsw_torque_distribution.h:53
CD_REQUEST_REF prop_thruster_coefficients_ref
Thruster thrust coefficients.
Definition: fsw_torque_distribution.h:40
CD_REQUEST_REF guidance_pulsewidth_demand_ref
Guidance pulsewidth demand.
Definition: fsw_torque_distribution.h:44
CD_REQUEST_REF rwa_rate_ref
Reaction wheel rates.
Definition: fsw_torque_distribution.h:51
CD_REQUEST_REF guidance_thruster_command_ref
Guidance thruster set.
Definition: fsw_torque_distribution.h:35
void initialize_data()
Request event notification for FSW_TORQUE_DISTRIBUTION_TRIGGER.
Definition: fsw_torque_distribution.cc:20
CD_REQUEST_REF rwa_inertia_ref
Reaction wheel inertia (double)
Definition: fsw_torque_distribution.h:52
CD_REQUEST_REF control_period_ref
Control period command (double)
Definition: fsw_torque_distribution.h:50
CD_REQUEST_REF rwa_max_voltage_ref
RWA maximum voltage (double)
Definition: fsw_torque_distribution.h:49
CD_REQUEST_REF rwa_voltage_demand_ref
RWA Voltage Demand.
Definition: fsw_torque_distribution.h:68
CD_REQUEST_REF prop_thruster_positions_ref
Thruster positions.
Definition: fsw_torque_distribution.h:39
CD_REQUEST_REF acs_torque_demand_ref
The torque demand for all attitude control.
Definition: fsw_torque_distribution.h:36
CD_REQUEST_REF rwa_torque_constant_ref
RWA torque constant (double)
Definition: fsw_torque_distribution.h:48
CD_REQUEST_REF prop_thruster_directions_ref
Thruster force directions.
Definition: fsw_torque_distribution.h:38
CD_CREATE_REF acs_rwa_pinv_command_ref
Pseudo-inverse for reaction wheels.
Definition: fsw_torque_distribution.h:76
CD_CREATE_REF thruster_period_mult_command_ref
Pulsing periods.
Definition: fsw_torque_distribution.h:78
CD_CREATE_REF acs_actuator_selection_command_ref
Command to use different actuators.
Definition: fsw_torque_distribution.h:75
CD_CREATE_REF acs_thruster_command_ref
ACS thruster set.
Definition: fsw_torque_distribution.h:77
CD_CREATE_REF rwa_command_ref
RWAs to use.
Definition: fsw_torque_distribution.h:79
Define the trigger and variables names for the software system.