Spacecraft Control Bundle 1
fsw_sun_sensor_processing.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#include "sc_events.h"
9
10#ifndef FSW_SUN_SENSOR_PROCESSING
11#define FSW_SUN_SENSOR_PROCESSING
12
15class fsw_sun_sensor_processing : public cd_control_module
16{
17 public:
18 fsw_sun_sensor_processing (const char * mod_name);
19 void initialize_data();
20 void initialize();
21 void handle_event(int code);
22
23 protected:
24
35
40 CD_CREATE_REF sun_sensor_pitch_ref;
42 CD_CREATE_REF sun_sensor_roll_ref;
44 CD_CREATE_REF sun_sensor_valid_ref;
46
52
53};
54
55extern "C"
56{
57 cd_control_module *fsw_sun_sensor_processing_builder(const char *name);
58}
59
60#endif
Processes the sun sensor.
Definition: fsw_sun_sensor_processing.h:16
void handle_event(int code)
Load the data from the simulation and assign it to the output variables.
Definition: fsw_sun_sensor_processing.cc:43
CD_CREATE_REF sun_sensor_pitch_ref
Measured pitch angle.
Definition: fsw_sun_sensor_processing.h:40
CD_CREATE_REF sun_sensor_q_body_to_sensor_ref
Measured sun data.
Definition: fsw_sun_sensor_processing.h:50
CD_REQUEST_REF sun_sensor_roll_sim_ref
Simulation roll angle.
Definition: fsw_sun_sensor_processing.h:31
CD_CREATE_REF sun_sensor_roll_ref
Measured roll angle.
Definition: fsw_sun_sensor_processing.h:42
CD_CREATE_REF sun_sensor_valid_ref
Measurement valid flag.
Definition: fsw_sun_sensor_processing.h:44
CD_REQUEST_REF sun_sensor_valid_sim_ref
Simulation data valid flag.
Definition: fsw_sun_sensor_processing.h:33
void initialize_data()
Request event notification for FSW_SUN_SENSOR_PROCESSING_TRIGGER.
Definition: fsw_sun_sensor_processing.cc:15
CD_REQUEST_REF sun_sensor_pitch_sim_ref
Simulation pitch angle.
Definition: fsw_sun_sensor_processing.h:29
Define the trigger and variables names for the software system.