Spacecraft Control Bundle 1
|
Generate Euler torque. More...
#include <fsw_euler_torque.h>
Public Member Functions | |
fsw_euler_torque (const char *mod_name) | |
void | initialize_data () |
Request event notification for FSW_EULER_TORQUE_TRIGGER. More... | |
void | initialize_data_requests () |
void | handle_event (int code) |
Overwrite the torque demand in acs_torque_demand_ref with the Euler adjustment. More... | |
Protected Attributes | |
Inputs | |
CD_REQUEST_REF | omega_ref |
Body rate. More... | |
CD_REQUEST_REF | rwa_rate_ref |
Reaction wheel rate. More... | |
CD_REQUEST_REF | rwa_inertia_ref |
Reaction wheel inertia (double) More... | |
CD_REQUEST_REF | inertia_ref |
Inertia matrix. More... | |
CD_REQUEST_REF | rwa_unit_vector_ref |
RWA unit vector. More... | |
CD_REQUEST_REF | acs_torque_demand_ref |
The torque demand for all attitude control; This value will be overwritten with the Euler torque subtracted. More... | |
Commands | |
CD_CREATE_REF | euler_torque_command_ref |
Turn on euler torque compensation (int) More... | |
Generate Euler torque.
Used to feed forward the Euler torques, generated when the spacecraft is rotated, to the control system. This effectively is feedback linearization, since it is canceling the nonlinear terms in the Euler equation.
void fsw_euler_torque::handle_event | ( | int | code | ) |
Overwrite the torque demand in acs_torque_demand_ref with the Euler adjustment.
References acs_torque_demand_ref, euler_torque_command_ref, inertia, inertia_ref, omega_ref, rwa_inertia_ref, rwa_rate_ref, and rwa_unit_vector_ref.
void fsw_euler_torque::initialize_data | ( | ) |
Request event notification for FSW_EULER_TORQUE_TRIGGER.
References euler_torque_command_ref, and FSW_EULER_TORQUE_TRIGGER.
|
protected |
The torque demand for all attitude control; This value will be overwritten with the Euler torque subtracted.
Referenced by handle_event().
|
protected |
Inertia matrix.
Referenced by handle_event().
|
protected |
Body rate.
Referenced by handle_event().
|
protected |
Reaction wheel inertia (double)
Referenced by handle_event().
|
protected |
Reaction wheel rate.
Referenced by handle_event().
|
protected |
RWA unit vector.
Referenced by handle_event().