Spacecraft Control Bundle 1
|
Star catalog processing. More...
#include <fsw_star_catalog.h>
Public Member Functions | |
fsw_star_catalog (const char *mod_name) | |
void | initialize_data () |
Create data and request the FSW_STAR_CATALOG_TRIGGER. More... | |
void | initialize_data_requests () |
Data requests from other modules. More... | |
void | initialize () |
void | handle_event (int code) |
The star unit vectors are updated annually. More... | |
Protected Member Functions | |
bool | initialize_star_catalog () |
Initialize the catalog. More... | |
void | update_unit_vectors () |
Updates unit vectors for new date. More... | |
Protected Attributes | |
Inputs | |
CD_REQUEST_REF | jd_ref |
julian_date More... | |
Outputs | |
CD_CREATE_REF | unit_vector_ref |
CD_CREATE_REF | visual_magnitude_ref |
CD_CREATE_REF | hip_ref |
Parameters | |
CD_CREATE_REF | filename_ref |
File name. More... | |
Star catalog processing.
This class provides unit vectors to the stars and magnitudes for each star. The star units vectors are calculated for the current date using the specified motion parameters. The star catalog is read from a file, which must have the name StarCatalog5122.txt and be in Model Libraries. The matrix in the file is M rows by 7 columns.
void fsw_star_catalog::handle_event | ( | int | code | ) |
The star unit vectors are updated annually.
References initialize_star_catalog(), jd_ref, julian_date, star_unit_vectors, star_visual_magnitude, sc_data::type, and update_unit_vectors().
void fsw_star_catalog::initialize_data | ( | ) |
Create data and request the FSW_STAR_CATALOG_TRIGGER.
References ephem_hipparcos_ids, filename_ref, FSW_STAR_CATALOG_TRIGGER, star_unit_vectors, star_visual_magnitude, and sc_data::type.
void fsw_star_catalog::initialize_data_requests | ( | ) |
Data requests from other modules.
References jd_ref, julian_date, and sc_data::type.
|
protected |
Initialize the catalog.
Initialize the star catalog, update the star unit vectors to the current date, and set the unit vector and visual magnitude values.
The angular increment for removing stars that are "too close" is currently hard-coded.
References ephem_hipparcos_ids, filename_ref, star_unit_vectors, star_visual_magnitude, sc_data::type, and update_unit_vectors().
Referenced by handle_event().
|
protected |
Updates unit vectors for new date.
Generate unit vectors from star_catalog, [ID vM rA dec parallax rV pMRA pMDec].
Accounts only for proper motion.
References jd_ref, and julian_date.
Referenced by handle_event(), and initialize_star_catalog().
|
protected |
File name.
Referenced by initialize_data(), and initialize_star_catalog().
|
protected |
Referenced by handle_event(), initialize_data_requests(), and update_unit_vectors().