Spacecraft Control Bundle 1
cs_torquer_interface Class Reference

The magnetic torquer interface producing sign and pulsewidth demand. More...

#include <cs_torquer_interface.h>

Inheritance diagram for cs_torquer_interface:

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

Detailed Description

The magnetic torquer interface producing sign and pulsewidth demand.

Member Function Documentation

◆ handle_event()

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.

◆ initialize_data()

void cs_torquer_interface::initialize_data ( )

Request event notification for CS_TORQUER_INTERFACE_TRIGGER.

References CS_TORQUER_INTERFACE_TRIGGER, and mm_dipole_command_ref.

Member Data Documentation

◆ acs_actuator_selection_command_ref

CD_REQUEST_REF cs_torquer_interface::acs_actuator_selection_command_ref
protected

Command to use different actuators (int)

Referenced by handle_event().

◆ acs_torque_demand_ref

CD_REQUEST_REF cs_torquer_interface::acs_torque_demand_ref
protected

acs_torque_demand_ref

Referenced by handle_event().

◆ ad_q_eci_to_body_ref

CD_REQUEST_REF cs_torquer_interface::ad_q_eci_to_body_ref
protected

Quaternion from eci to body.

Referenced by handle_event().

◆ b_field_ref

CD_REQUEST_REF cs_torquer_interface::b_field_ref
protected

Measured b-field.

Referenced by handle_event().

◆ jd_ref

CD_REQUEST_REF cs_torquer_interface::jd_ref
protected

Julian date.

Referenced by handle_event().

◆ magnetic_torquer_pulsewidth_demand_ref

CD_REQUEST_REF cs_torquer_interface::magnetic_torquer_pulsewidth_demand_ref
protected

Computed pulsewidth demand.

Referenced by handle_event().

◆ magnetic_torquer_sign_ref

CD_REQUEST_REF cs_torquer_interface::magnetic_torquer_sign_ref
protected

Magnetic_torquer_sign.

Referenced by handle_event().

◆ mm_dipole_command_ref

CD_CREATE_REF cs_torquer_interface::mm_dipole_command_ref
protected

Magnetic torquer dipole command.

Referenced by handle_event(), and initialize_data().

◆ mm_period_command_ref

CD_REQUEST_REF cs_torquer_interface::mm_period_command_ref
protected

Magnetic torquer control period command (double)

Referenced by handle_event().

◆ mm_torque_ref

CD_REQUEST_REF cs_torquer_interface::mm_torque_ref
protected

Momentum management torque.

Referenced by handle_event().


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