Spacecraft Control Framework 1.0
Spacecraft Control Library
sc_optical_nav_meas.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------------------
2// Navigation measurements for one or two planets with stars.
3//-----------------------------------------------------------------------------------------
4// Copyright (c) 2009 Princeton Satellite Systems. All rights reserved.
5//-----------------------------------------------------------------------------------------
6
11#ifndef __OPTICAL_NAV_MEAS__
12#define __OPTICAL_NAV_MEAS__
13
14#ifdef AS_OS_WINDOWS
15 #include "matrixlib.h"
16#else
17 #include <MatrixLib/MatrixLib.h>
18#endif
19
20
25{
26
27 private:
29 ml_matrix l1;
30 ml_matrix l2;
32 ml_matrix u1;
33 ml_matrix u2;
34 ml_matrix y;
36 double a1;
37 double a2;
39 int n_planets;
40 int star_planet_1;
41 int star_planet_2;
43 double delta;
44
45
46 public:
47 optical_nav_meas( void );
48 void SetParameters( ml_matrix l1, double a1, ml_matrix u1, ml_matrix l2, double a2, ml_matrix u2 );
49 void SetMeasurementType( int n_planets, int star_planet_1, int star_planet_2 );
50 void SetDelta( double delta );
51 ml_matrix Update( ml_matrix x );
52 ml_matrix Jacobian( ml_matrix x );
53
54};
55
59double angle_planet_to_planet( ml_matrix r_sensor, ml_matrix r_planet_1, ml_matrix r_planet_2 );
61double planet_chordwith( ml_matrix r, ml_matrix r_planet, double radius_planet );
63double angle_planet_to_star( ml_matrix r, ml_matrix r_planet, ml_matrix u_star );
65
66
67#endif
Optical navigation measurements class.
Definition: sc_optical_nav_meas.h:25
void SetMeasurementType(int n_planets, int star_planet_1, int star_planet_2)
Input the delta for the Jacobian calculation.
Definition: sc_optical_nav_meas.cc:62
ml_matrix Jacobian(ml_matrix x)
Compute the Jacobian.
Definition: sc_optical_nav_meas.cc:74
void SetDelta(double delta)
Input the delta for the Jacobian calculation.
Definition: sc_optical_nav_meas.cc:26
ml_matrix Update(ml_matrix x)
Update the measurement vector.
Definition: sc_optical_nav_meas.cc:109
void SetParameters(ml_matrix l1, double a1, ml_matrix u1, ml_matrix l2, double a2, ml_matrix u2)
Input the delta for the Jacobian calculation.
Definition: sc_optical_nav_meas.cc:41
double angle_planet_to_star(ml_matrix r, ml_matrix r_planet, ml_matrix u_star)
Angle between a planet and a star.
Definition: sc_optical_nav_meas.cc:195
double angle_planet_to_planet(ml_matrix r_sensor, ml_matrix r_planet_1, ml_matrix r_planet_2)
Angle between two planets.
Definition: sc_optical_nav_meas.cc:166
double planet_chordwith(ml_matrix r, ml_matrix r_planet, double radius_planet)
Planet chordwidth.
Definition: sc_optical_nav_meas.cc:181