Spacecraft Control Bundle 1
fsw_co_id.h
1/*
2 * Header file for object of class fsw_co_id.
3 * Copyright 2010, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8#import <SCControl/SCControl.h>
9#include "sc_events.h"
10#include "sc_data_names.h"
11
12
13#ifndef FSW_CO_ID
14#define FSW_CO_ID
15
16
28class fsw_co_id : public cd_control_module
29{
30 public:
31 fsw_co_id (const char * mod_name);
32 void initialize_data();
33 void initialize_data_requests();
34 void initialize();
35 void handle_event(int code);
36
37
38 protected:
39
43 CD_CREATE_REF star_id_camera_ref;
45 CD_CREATE_REF u_star_camera_ref;
47 CD_CREATE_REF star_hip_ref;
49 CD_CREATE_REF number_of_stars_ref;
53 CD_CREATE_REF meas_stars_ref;
55 CD_CREATE_REF u_star_catalog_ref;
57 CD_CREATE_REF angular_res_scale_ref;
59
63 CD_REQUEST_REF star_data_ref;
65 CD_REQUEST_REF unit_vector_ref;
67 CD_REQUEST_REF visual_magnitude_ref;
69 CD_REQUEST_REF hip_ref;
73 CD_REQUEST_REF q_eci_to_body_sim_ref;
75 //TODO need a flag to reload the catalog/near matrix
76
80 CD_CREATE_REF angular_res_ref;
82
84 star_meas starID_1;
85
87 double field_of_view( double nPixels, double f, double wPixel );
88
89 private:
90 double focalLength; // focal length in mm
91 double fScale; // focal length as measured in pixels
92 double cameraGain;
93 bool catalogIsInit;
94
95};
96
97extern "C"
98{
99 cd_control_module *fsw_co_id_builder(const char *name);
100}
101
102#endif
Celestial object identification.
Definition: fsw_co_id.h:29
void initialize_data()
Request notification for FSW_CO_ID_TRIGGER.
Definition: fsw_co_id.cc:17
CD_REQUEST_REF hip_ref
Star Hipparcos IDs (1,n)
Definition: fsw_co_id.h:69
CD_REQUEST_REF visual_magnitude_ref
Star visual magnitude (1,n)
Definition: fsw_co_id.h:67
CD_CREATE_REF u_star_catalog_ref
Catalog unit vedtors.
Definition: fsw_co_id.h:55
CD_REQUEST_REF star_data_ref
Star data matrix.
Definition: fsw_co_id.h:63
CD_CREATE_REF star_id_camera_ref
Star id camera, "star_id_camera_1".
Definition: fsw_co_id.h:43
CD_REQUEST_REF camera_data_command_ref
Camera 1 data.
Definition: fsw_co_id.h:71
CD_CREATE_REF meas_stars_ref
Number of stars.
Definition: fsw_co_id.h:53
CD_CREATE_REF angular_res_scale_ref
Angle resolution scale.
Definition: fsw_co_id.h:57
star_meas starID_1
Star identification algorithm for camera 1.
Definition: fsw_co_id.h:84
CD_CREATE_REF star_hip_ref
Star Hipparcos ID, "star_hip_camera_1".
Definition: fsw_co_id.h:47
CD_CREATE_REF max_number_of_stars_ref
Number of stars.
Definition: fsw_co_id.h:51
double field_of_view(double nPixels, double f, double wPixel)
Field of view computation.
Definition: fsw_co_id.cc:280
CD_REQUEST_REF q_eci_to_body_sim_ref
Inertial quaternion.
Definition: fsw_co_id.h:73
CD_CREATE_REF number_of_stars_ref
Number of stars.
Definition: fsw_co_id.h:49
CD_REQUEST_REF unit_vector_ref
Star unit vectors (3,n)
Definition: fsw_co_id.h:65
CD_CREATE_REF u_star_camera_ref
Unit vectors for identified stars, "u_star_camera_1".
Definition: fsw_co_id.h:45
CD_CREATE_REF angular_res_ref
Angular resolution between stars (usually 1-2 pixels)
Definition: fsw_co_id.h:80
Define the data names used throughout the control system.
Define the trigger and variables names for the software system.