9#ifndef __star_sun_mag_meas__
10#define __star_sun_mag_meas__
13 #include "matrixlib.h"
15 #include <MatrixLib/MatrixLib.h>
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