Spacecraft Control Bundle 1
fsw_euler_torque Class Reference

Generate Euler torque. More...

#include <fsw_euler_torque.h>

Inheritance diagram for fsw_euler_torque:

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

Detailed Description

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.

Member Function Documentation

◆ handle_event()

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.

◆ initialize_data()

void fsw_euler_torque::initialize_data ( )

Request event notification for FSW_EULER_TORQUE_TRIGGER.

References euler_torque_command_ref, and FSW_EULER_TORQUE_TRIGGER.

Member Data Documentation

◆ acs_torque_demand_ref

CD_REQUEST_REF fsw_euler_torque::acs_torque_demand_ref
protected

The torque demand for all attitude control; This value will be overwritten with the Euler torque subtracted.

Referenced by handle_event().

◆ inertia_ref

CD_REQUEST_REF fsw_euler_torque::inertia_ref
protected

Inertia matrix.

Referenced by handle_event().

◆ omega_ref

CD_REQUEST_REF fsw_euler_torque::omega_ref
protected

Body rate.

Referenced by handle_event().

◆ rwa_inertia_ref

CD_REQUEST_REF fsw_euler_torque::rwa_inertia_ref
protected

Reaction wheel inertia (double)

Referenced by handle_event().

◆ rwa_rate_ref

CD_REQUEST_REF fsw_euler_torque::rwa_rate_ref
protected

Reaction wheel rate.

Referenced by handle_event().

◆ rwa_unit_vector_ref

CD_REQUEST_REF fsw_euler_torque::rwa_unit_vector_ref
protected

RWA unit vector.

Referenced by handle_event().


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