Spacecraft Control Bundle 1
fsw_momentum_mgmt.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 FSW_MOMENTUM_MGMT
10#define FSW_MOMENTUM_MGMT
11
14class fsw_momentum_mgmt : public cd_control_module
15{
16 public:
17 fsw_momentum_mgmt (const char * mod_name);
18 void initialize_data();
19 void initialize_data_requests();
20 void handle_event(int code);
21
22 protected:
23
27 CD_REQUEST_REF rate_meas_ref;
29 CD_REQUEST_REF rwa_rate_sim_ref;
31 CD_REQUEST_REF inertia_ref;
33 CD_REQUEST_REF ad_q_eci_to_body_ref;
35
39 CD_CREATE_REF mm_torque_ref;
41 CD_CREATE_REF h_eci_ref;
43
47 CD_CREATE_REF mm_gain_command_ref;
49 CD_CREATE_REF mm_period_command_ref;
55
56};
57
58extern "C"
59{
60 cd_control_module *fsw_momentum_mgmt_builder(const char *name);
61}
62
63#endif
Momentum management.
Definition: fsw_momentum_mgmt.h:15
CD_REQUEST_REF inertia_ref
Inertia matrix.
Definition: fsw_momentum_mgmt.h:31
void initialize_data()
Request event notification for fsw_momentum_mgmt_TRIGGER.
Definition: fsw_momentum_mgmt.cc:15
CD_REQUEST_REF rwa_rate_sim_ref
The spacecraft rwa rate (from the simulation)
Definition: fsw_momentum_mgmt.h:29
CD_REQUEST_REF rate_meas_ref
Measured camera rate.
Definition: fsw_momentum_mgmt.h:27
CD_CREATE_REF mm_period_command_ref
Momentum management period.
Definition: fsw_momentum_mgmt.h:49
CD_REQUEST_REF ad_q_eci_to_body_ref
Quaternion from attitude determination.
Definition: fsw_momentum_mgmt.h:33
CD_CREATE_REF h_eci_ref
Momentum vector in ECI frame.
Definition: fsw_momentum_mgmt.h:41
CD_CREATE_REF mm_torque_ref
Momentum management torque.
Definition: fsw_momentum_mgmt.h:39
CD_CREATE_REF mm_gain_command_ref
Momentum management gain.
Definition: fsw_momentum_mgmt.h:47
CD_CREATE_REF acs_rwa_inertia_command_ref
Inertia of reaction wheels.
Definition: fsw_momentum_mgmt.h:53
CD_CREATE_REF acs_rwa_unit_vector_command_ref
RWA unit vectors for reaction wheels.
Definition: fsw_momentum_mgmt.h:51