Spacecraft Control Bundle 1
fsw_euler_torque.h
1/*
2 * Header file for object of class es_template.
3 * Copyright 2013, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8#include "sc_events.h"
9
10#ifndef FSW_EULER_TORQUE
11#define FSW_EULER_TORQUE
12
14
18class fsw_euler_torque : public cd_control_module
19{
20 public:
21 fsw_euler_torque (const char * mod_name);
22 void initialize_data();
23 void initialize_data_requests();
24 void handle_event(int code);
25
26 protected:
27
31 CD_REQUEST_REF omega_ref;
33 CD_REQUEST_REF rwa_rate_ref;
35 CD_REQUEST_REF rwa_inertia_ref;
37 CD_REQUEST_REF inertia_ref;
39 CD_REQUEST_REF rwa_unit_vector_ref;
42 CD_REQUEST_REF acs_torque_demand_ref;
44
45
46
53
54};
55
56extern "C"
57{
58 cd_control_module *fsw_euler_torque_builder(const char *name);
59}
60
61#endif
Generate Euler torque.
Definition: fsw_euler_torque.h:19
CD_REQUEST_REF acs_torque_demand_ref
The torque demand for all attitude control; This value will be overwritten with the Euler torque subt...
Definition: fsw_euler_torque.h:42
CD_REQUEST_REF rwa_unit_vector_ref
RWA unit vector.
Definition: fsw_euler_torque.h:39
void handle_event(int code)
Overwrite the torque demand in acs_torque_demand_ref with the Euler adjustment.
Definition: fsw_euler_torque.cc:37
CD_REQUEST_REF rwa_rate_ref
Reaction wheel rate.
Definition: fsw_euler_torque.h:33
CD_REQUEST_REF inertia_ref
Inertia matrix.
Definition: fsw_euler_torque.h:37
CD_REQUEST_REF omega_ref
Body rate.
Definition: fsw_euler_torque.h:31
CD_REQUEST_REF rwa_inertia_ref
Reaction wheel inertia (double)
Definition: fsw_euler_torque.h:35
void initialize_data()
Request event notification for FSW_EULER_TORQUE_TRIGGER.
Definition: fsw_euler_torque.cc:15
CD_CREATE_REF euler_torque_command_ref
Turn on euler torque compensation (int)
Definition: fsw_euler_torque.h:51
Define the trigger and variables names for the software system.