Spacecraft Control Bundle 1
|
The magnetic torquer interface producing sign and pulsewidth demand. More...
#include <cs_torquer_interface.h>
Public Member Functions | |
cs_torquer_interface (const char *mod_name) | |
void | initialize_data () |
Request event notification for CS_TORQUER_INTERFACE_TRIGGER. More... | |
void | initialize_data_requests () |
void | handle_event (int code) |
Calculate the demand and set the values of magnetic_torquer_pulsewidth_demand and magnetic_torquer_sign. More... | |
Protected Attributes | |
double | julian_date_old |
Inputs | |
| |
CD_REQUEST_REF | mm_period_command_ref |
Magnetic torquer control period command (double) More... | |
CD_REQUEST_REF | mm_torque_ref |
Momentum management torque. More... | |
CD_REQUEST_REF | jd_ref |
Julian date. More... | |
CD_REQUEST_REF | b_field_ref |
Measured b-field. More... | |
CD_REQUEST_REF | ad_q_eci_to_body_ref |
Quaternion from eci to body. More... | |
CD_REQUEST_REF | acs_torque_demand_ref |
acs_torque_demand_ref More... | |
CD_REQUEST_REF | acs_actuator_selection_command_ref |
Command to use different actuators (int) More... | |
Assignments | |
| |
CD_REQUEST_REF | magnetic_torquer_sign_ref |
Magnetic_torquer_sign. More... | |
CD_REQUEST_REF | magnetic_torquer_pulsewidth_demand_ref |
Computed pulsewidth demand. More... | |
Parameters | |
| |
CD_CREATE_REF | mm_dipole_command_ref |
Magnetic torquer dipole command. More... | |
The magnetic torquer interface producing sign and pulsewidth demand.
void cs_torquer_interface::handle_event | ( | int | code | ) |
Calculate the demand and set the values of magnetic_torquer_pulsewidth_demand and magnetic_torquer_sign.
Has paths for momentum loading and control.
References acs_actuator_selection_command_ref, acs_torque_demand_ref, ad_q_eci_to_body_ref, b_field_ref, jd_ref, julian_date, magnetic_torquer_pulsewidth_demand_ref, magnetic_torquer_sign_ref, mm_dipole_command_ref, mm_period_command_ref, and mm_torque_ref.
void cs_torquer_interface::initialize_data | ( | ) |
Request event notification for CS_TORQUER_INTERFACE_TRIGGER.
References CS_TORQUER_INTERFACE_TRIGGER, and mm_dipole_command_ref.
|
protected |
Command to use different actuators (int)
Referenced by handle_event().
|
protected |
acs_torque_demand_ref
Referenced by handle_event().
|
protected |
Quaternion from eci to body.
Referenced by handle_event().
|
protected |
Measured b-field.
Referenced by handle_event().
|
protected |
Julian date.
Referenced by handle_event().
|
protected |
Computed pulsewidth demand.
Referenced by handle_event().
|
protected |
Magnetic_torquer_sign.
Referenced by handle_event().
|
protected |
Magnetic torquer dipole command.
Referenced by handle_event(), and initialize_data().
|
protected |
Magnetic torquer control period command (double)
Referenced by handle_event().
|
protected |
Momentum management torque.
Referenced by handle_event().