Spacecraft Control Framework 1.0
Spacecraft Control Library
sc_star_sun_mag_meas.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------------------
2// Star, sun, magnetic field measurements
3//-----------------------------------------------------------------------------------------
4// Copyright (c) 2017 Princeton Satellite Systems. All rights reserved.
5//-----------------------------------------------------------------------------------------
6
8
9#ifndef __star_sun_mag_meas__
10#define __star_sun_mag_meas__
11
12#ifdef AS_OS_WINDOWS
13 #include "matrixlib.h"
14#else
15 #include <MatrixLib/MatrixLib.h>
16#endif
17
18extern "C++"
19{
20
22typedef struct star_sun_mag_meas_data {
23 ml_matrix q;
24 ml_matrix r_eci;
25 ml_matrix star_uv;
30 ml_matrix r_magnetometer;
31 ml_int_array sun_sensor_id;
32 double f_scale;
33 double j_d;
34 double r_star;
35 double r_sun;
36 bool use_stars;
37 bool use_sun;
38 bool use_mag;
39 double row_origin;
40 double col_origin;
42
43
45ml_matrix star_sun_mag_meas( const ml_matrix& x, ml_matrix& covariance, star_sun_mag_meas_data& d );
46
47}
48
49#endif
ml_matrix star_sun_mag_meas(const ml_matrix &x, ml_matrix &covariance, star_sun_mag_meas_data &d)
Returns the measurements.
struct star_sun_mag_meas_data star_sun_mag_meas_data
Structure for storing the data input for the mesurement function.
Structure for storing the data input for the mesurement function.
Definition: sc_star_sun_mag_meas.h:22
double r_star
Julian date for magnetic field.
Definition: sc_star_sun_mag_meas.h:34
double col_origin
Imager column origin.
Definition: sc_star_sun_mag_meas.h:40
ml_matrix star_uv
Position in the eci frame.
Definition: sc_star_sun_mag_meas.h:25
ml_matrix r_magnetometer
Quaternion from the body to the magnetometer frame.
Definition: sc_star_sun_mag_meas.h:30
bool use_stars
Covariance for sun measurement.
Definition: sc_star_sun_mag_meas.h:36
ml_matrix q_b_to_magnetometer
Matrix from the body to the star sensor frame.
Definition: sc_star_sun_mag_meas.h:29
double r_sun
Covariance for star measurement.
Definition: sc_star_sun_mag_meas.h:35
ml_int_array sun_sensor_id
Magnetometer noise covariance.
Definition: sc_star_sun_mag_meas.h:31
double row_origin
Use magnetometer measurements if true.
Definition: sc_star_sun_mag_meas.h:39
double f_scale
ID of sun sensor data.
Definition: sc_star_sun_mag_meas.h:32
bool use_mag
Use sun measurements if true.
Definition: sc_star_sun_mag_meas.h:38
ml_matrix m_b_to_star_sensor
Quaternion from the body to the star sensor frame.
Definition: sc_star_sun_mag_meas.h:28
ml_matrix q_b_to_sun_sensor
Star unit vectors.
Definition: sc_star_sun_mag_meas.h:26
ml_matrix q_b_to_star_sensor
Quaternion from the body to the sun sensor frame.
Definition: sc_star_sun_mag_meas.h:27
ml_matrix r_eci
Nominal quaternion from eci to body.
Definition: sc_star_sun_mag_meas.h:24
bool use_sun
Use star measurements if true.
Definition: sc_star_sun_mag_meas.h:37
double j_d
Optical scale factor.
Definition: sc_star_sun_mag_meas.h:33