Spacecraft Control Bundle 1
fsw_thruster_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
9#ifndef FSW_THRUSTER_TORQUE_DISTRIBUTION
10#define FSW_THRUSTER_TORQUE_DISTRIBUTION
11
18class fsw_thruster_torque_distribution : public cd_control_module
19{
20 public:
21 fsw_thruster_torque_distribution (const char * mod_name);
22 void initialize_data();
23 void initialize();
24 void handle_event(int code);
25
26 protected:
30 CD_REQUEST_REF acs_torque_demand_ref;
31
39 CD_REQUEST_REF prop_tank_pressure_ref;
41 CD_REQUEST_REF center_of_mass_ref;
42
54 CD_REQUEST_REF control_period_ref;
56
62
68
77
78 int pulse_count;
79
80};
81
82extern "C"
83{
84 cd_control_module *fsw_thruster_torque_distribution_builder(const char *name);
85}
86
87#endif
Interfaces for thrusters.
Definition: fsw_thruster_torque_distribution.h:19
CD_REQUEST_REF control_period_ref
Control period command (double)
Definition: fsw_thruster_torque_distribution.h:54
CD_REQUEST_REF guidance_thruster_mode_ref
Guidance mode (int)
Definition: fsw_thruster_torque_distribution.h:52
CD_REQUEST_REF center_of_mass_ref
Center of mass.
Definition: fsw_thruster_torque_distribution.h:41
CD_CREATE_REF thruster_period_mult_command_ref
Pulsing periods.
Definition: fsw_thruster_torque_distribution.h:75
CD_REQUEST_REF prop_thruster_pulsewidth_demand_ref
Pulsewidth demand output to propulsion hardware.
Definition: fsw_thruster_torque_distribution.h:66
CD_REQUEST_REF prop_thruster_positions_ref
Thruster positions.
Definition: fsw_thruster_torque_distribution.h:35
void initialize_data()
Create data and request the FSW_TORQUE_DISTRIBUTION_TRIGGER.
Definition: fsw_thruster_torque_distribution.cc:19
CD_CREATE_REF prop_simplex_failed_ref
Flag to indicate that simplex failed to converge (int)
Definition: fsw_thruster_torque_distribution.h:60
CD_REQUEST_REF prop_thruster_directions_ref
Thruster force directions.
Definition: fsw_thruster_torque_distribution.h:33
CD_REQUEST_REF prop_thruster_coefficients_ref
Thruster thrust coefficients.
Definition: fsw_thruster_torque_distribution.h:37
CD_REQUEST_REF guidance_orbit_force_ref
RCS force demand.
Definition: fsw_thruster_torque_distribution.h:50
CD_CREATE_REF acs_thruster_command_ref
ACS thruster set.
Definition: fsw_thruster_torque_distribution.h:73
CD_REQUEST_REF acs_torque_demand_ref
The torque demand for all attitude control.
Definition: fsw_thruster_torque_distribution.h:30
CD_REQUEST_REF guidance_thruster_command_ref
Guidance thruster set.
Definition: fsw_thruster_torque_distribution.h:46
CD_REQUEST_REF guidance_pulsewidth_demand_ref
Guidance pulsewidth demand.
Definition: fsw_thruster_torque_distribution.h:44
CD_REQUEST_REF prop_tank_pressure_ref
Propellant tank pressure.
Definition: fsw_thruster_torque_distribution.h:39
CD_REQUEST_REF guidance_use_rcs_command_ref
Use the RCS system for delta V (int)
Definition: fsw_thruster_torque_distribution.h:48