Spacecraft Control Bundle 1
fsw_mass.h
1/*
2 * Header file for object of class es_template.
3 * Copyright 2008, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8#include "sc_events.h"
9#include "sc_data_names.h"
10
11#ifndef FSW_MASS
12#define FSW_MASS
13
14
16
21class fsw_mass : public cd_control_module
22{
23 public:
24 fsw_mass (const char * mod_name);
25 void initialize_data();
26 void initialize_data_requests();
27 void handle_event(int code);
28
29 protected:
33 CD_REQUEST_REF inertia_sim_ref;
35 CD_REQUEST_REF center_of_mass_sim_ref;
37 CD_REQUEST_REF mass_sim_ref;
39
43 CD_CREATE_REF inertia_ref;
45 CD_CREATE_REF mass_ref;
47 CD_CREATE_REF center_of_mass_ref;
49
50};
51
52extern "C"
53{
54 cd_control_module *fsw_mass_builder(const char *name);
55}
56
57#endif
This module outputs mass properties.
Definition: fsw_mass.h:22
void initialize_data()
Create data and request the FSW_MASS_TRIGGER.
Definition: fsw_mass.cc:15
CD_CREATE_REF inertia_ref
Inertia matrix.
Definition: fsw_mass.h:43
CD_REQUEST_REF center_of_mass_sim_ref
Center of mass from the sim.
Definition: fsw_mass.h:35
CD_CREATE_REF mass_ref
Mass.
Definition: fsw_mass.h:45
CD_CREATE_REF center_of_mass_ref
Center of mass.
Definition: fsw_mass.h:47
CD_REQUEST_REF mass_sim_ref
Mass from the sim.
Definition: fsw_mass.h:37
CD_REQUEST_REF inertia_sim_ref
Inertia from the simulation.
Definition: fsw_mass.h:33
Define the data names used throughout the control system.
Define the trigger and variables names for the software system.