Spacecraft Control Bundle 1
cs_torquer_interface.h
1/*
2 * Header file for object of class es_template.
3 * Copyright 2010cs, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8
9#ifndef CS_TORQUER_INTERFACE
10#define CS_TORQUER_INTERFACE
11
15class cs_torquer_interface : public cd_control_module
16{
17 public:
18 cs_torquer_interface (const char * mod_name);
19 void initialize_data();
20 void initialize_data_requests();
21 void handle_event(int code);
22
23 protected:
24
28 CD_REQUEST_REF mm_period_command_ref;
30 CD_REQUEST_REF mm_torque_ref;
32 CD_REQUEST_REF jd_ref;
34 CD_REQUEST_REF b_field_ref;
36 CD_REQUEST_REF ad_q_eci_to_body_ref;
38 CD_REQUEST_REF acs_torque_demand_ref;
42
50
54 CD_CREATE_REF mm_dipole_command_ref;
56
57
58 double julian_date_old;
59
60};
61
62extern "C"
63{
64 cd_control_module *cs_torquer_interface_builder(const char *name);
65}
66
67#endif
The magnetic torquer interface producing sign and pulsewidth demand.
Definition: cs_torquer_interface.h:16
CD_REQUEST_REF acs_actuator_selection_command_ref
Command to use different actuators (int)
Definition: cs_torquer_interface.h:40
CD_REQUEST_REF b_field_ref
Measured b-field.
Definition: cs_torquer_interface.h:34
CD_REQUEST_REF magnetic_torquer_sign_ref
Magnetic_torquer_sign.
Definition: cs_torquer_interface.h:46
CD_REQUEST_REF mm_torque_ref
Momentum management torque.
Definition: cs_torquer_interface.h:30
void initialize_data()
Request event notification for CS_TORQUER_INTERFACE_TRIGGER.
Definition: cs_torquer_interface.cc:18
CD_CREATE_REF mm_dipole_command_ref
Magnetic torquer dipole command.
Definition: cs_torquer_interface.h:54
CD_REQUEST_REF acs_torque_demand_ref
acs_torque_demand_ref
Definition: cs_torquer_interface.h:38
CD_REQUEST_REF mm_period_command_ref
Magnetic torquer control period command (double)
Definition: cs_torquer_interface.h:28
void handle_event(int code)
Calculate the demand and set the values of magnetic_torquer_pulsewidth_demand and magnetic_torquer_si...
Definition: cs_torquer_interface.cc:45
CD_REQUEST_REF ad_q_eci_to_body_ref
Quaternion from eci to body.
Definition: cs_torquer_interface.h:36
CD_REQUEST_REF magnetic_torquer_pulsewidth_demand_ref
Computed pulsewidth demand.
Definition: cs_torquer_interface.h:48
CD_REQUEST_REF jd_ref
Julian date.
Definition: cs_torquer_interface.h:32