Spacecraft Control Bundle 1
cs_momentum_mgmt.h
1/*
2 * Header file for object of class es_template.
3 * Copyright 2010, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8
9#ifndef CS_MOMENTUM_MGMT
10#define CS_MOMENTUM_MGMT
11
21
22class cs_momentum_mgmt : public cd_control_module
23{
24 public:
25 cs_momentum_mgmt (const char * mod_name);
26 void initialize_data();
27 void initialize();
28 void handle_event(int code);
29
30 protected:
31
32
36 CD_REQUEST_REF rate_meas_ref;
38 CD_REQUEST_REF inertia_ref;
40 CD_REQUEST_REF ad_q_eci_to_body_ref;
42 CD_REQUEST_REF rwa_rate_sim_ref;
44
48 CD_CREATE_REF h_eci_ref;
50 CD_CREATE_REF mm_torque_ref;
52
57 CD_CREATE_REF mm_gain_command_ref;
59 CD_CREATE_REF mm_period_command_ref;
65
66};
67
68extern "C"
69{
70 cd_control_module *cs_momentum_mgmt_builder(const char *name);
71}
72
73#endif
This class manages spacecraft momentum.
Definition: cs_momentum_mgmt.h:23
void initialize_data()
Request notification of the CS_MOMENTUM_MGMT_TRIGGER.
Definition: cs_momentum_mgmt.cc:16
CD_CREATE_REF h_eci_ref
Momentum vector in ECI frame.
Definition: cs_momentum_mgmt.h:48
CD_REQUEST_REF rate_meas_ref
Measured body rate.
Definition: cs_momentum_mgmt.h:36
CD_REQUEST_REF rwa_rate_sim_ref
The spacecraft rwa rate from the simulation.
Definition: cs_momentum_mgmt.h:42
CD_CREATE_REF mm_torque_ref
Momentum management torque.
Definition: cs_momentum_mgmt.h:50
CD_REQUEST_REF inertia_ref
Inertia matrix.
Definition: cs_momentum_mgmt.h:38
CD_REQUEST_REF ad_q_eci_to_body_ref
Quaternion from attitude determination.
Definition: cs_momentum_mgmt.h:40
CD_CREATE_REF acs_rwa_inertia_command_ref
Pseudo-inverse for reaction wheels.
Definition: cs_momentum_mgmt.h:63
CD_CREATE_REF acs_rwa_unit_vector_command_ref
RWA unit vectors for reaction wheels.
Definition: cs_momentum_mgmt.h:61
CD_CREATE_REF mm_period_command_ref
Momentum management period.
Definition: cs_momentum_mgmt.h:59
CD_CREATE_REF mm_gain_command_ref
Definition: cs_momentum_mgmt.h:57