Spacecraft Control Bundle 1
ons_co_id.h
Go to the documentation of this file.
1
8#include <ControlDeck2/ControlDeck2.h>
9#import <SCControl/SCControl.h>
10#include "sc_events.h"
11#include "sc_data_names.h"
12
13
14#ifndef ONS_CO_ID
15#define ONS_CO_ID
16
26class ons_co_id : public cd_control_module
27{
28 public:
30 ons_co_id (const char * mod_name);
34 void initialize();
36 void handle_event(int code);
37
38
39 protected:
40
44 CD_REQUEST_REF star_data_1_ref;
46 CD_REQUEST_REF star_data_2_ref;
48 CD_REQUEST_REF visual_magnitude_ref;
50 CD_REQUEST_REF unit_vector_ref;
56 CD_REQUEST_REF hip_ref;
58
62 CD_CREATE_REF star_id_camera_1_ref;
64 CD_CREATE_REF star_id_camera_2_ref;
66 CD_CREATE_REF u_star_camera_1_ref;
68 CD_CREATE_REF u_star_camera_2_ref;
70 CD_CREATE_REF star_hip_camera_1_ref;
72 CD_CREATE_REF star_hip_camera_2_ref;
74 CD_CREATE_REF u_star_catalog_ref;
76 CD_CREATE_REF meas_stars_ref;
78
89
90private:
91
93 star_meas starID_1;
94
96 star_meas starID_2;
98 double field_of_view( double nPixels, double f, double wPixel );
99
100 bool catalogIsInit;
101};
102
103extern "C"
104{
105 cd_control_module *ons_co_id_builder(const char *name);
106}
107
108#endif
Celestial object identification with two sensors.
Definition: ons_co_id.h:27
void handle_event(int code)
Performs all processing.
CD_CREATE_REF landmark_id_camera_2_ref
Landmark id camera 2 (unused)
Definition: ons_co_id.h:83
CD_CREATE_REF spacecraft_id_camera_1_ref
Identified spacecraft in the camera 1 field of view (unused)
Definition: ons_co_id.h:85
void initialize_data()
Creates data used by other modules.
CD_CREATE_REF u_star_camera_2_ref
Unit vectors for identified stars.
Definition: ons_co_id.h:68
ons_co_id(const char *mod_name)
Constructor.
CD_REQUEST_REF star_data_2_ref
Star data camera 2.
Definition: ons_co_id.h:46
CD_REQUEST_REF camera_2_data_command_ref
Camera 2 data.
Definition: ons_co_id.h:54
CD_REQUEST_REF camera_1_data_command_ref
Camera 1 data.
Definition: ons_co_id.h:52
CD_CREATE_REF meas_stars_ref
Measured stars.
Definition: ons_co_id.h:76
CD_REQUEST_REF visual_magnitude_ref
Star visual magnitude.
Definition: ons_co_id.h:48
CD_CREATE_REF u_star_catalog_ref
Unit vectors for identified stars.
Definition: ons_co_id.h:74
void initialize()
One time initialization.
CD_CREATE_REF landmark_id_camera_1_ref
Definition: ons_co_id.h:81
CD_CREATE_REF star_id_camera_2_ref
Star id camera 2.
Definition: ons_co_id.h:64
CD_CREATE_REF spacecraft_id_camera_2_ref
Identified spacecraft in the camera 2 field of view (unused)
Definition: ons_co_id.h:87
CD_REQUEST_REF unit_vector_ref
Star unit vectors.
Definition: ons_co_id.h:50
CD_CREATE_REF star_hip_camera_2_ref
HIP references camera 2.
Definition: ons_co_id.h:72
CD_REQUEST_REF hip_ref
Star Hipparcos IDs (1,n)
Definition: ons_co_id.h:56
CD_CREATE_REF u_star_camera_1_ref
Unit vectors for identified stars.
Definition: ons_co_id.h:66
CD_CREATE_REF star_hip_camera_1_ref
HIP references camera 1.
Definition: ons_co_id.h:70
Define the data names used throughout the control system.
Define the trigger and variables names for the software system.