2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef GNC_NAVIGATION_MEASUREMENTS_CALC_FOCAL_PLANE_ANGLES_HPP
17#define GNC_NAVIGATION_MEASUREMENTS_CALC_FOCAL_PLANE_ANGLES_HPP
21#include "utils/Measurements.hpp"
22#include "core/safemath.hpp"
24#define FOCAL_PLANE_MEAS_TARGET_STATES 6
25#define FOCAL_PLANE_MEAS_OBSERVER_STATES 3
26#define FOCAL_PLANE_MEASUREMENTS 2
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
70 T z = tar_state[2] - obs_state[2];
76 out_measurements[0] = atan2(tar_state[0] - obs_state[0], z);
77 out_measurements[1] = atan2(tar_state[1] - obs_state[1], z);
#define FOCAL_PLANE_MEASUREMENTS
Definition CalcFocalPlaneAngles.hpp:26
#define FOCAL_PLANE_MEAS_TARGET_STATES
Definition CalcFocalPlaneAngles.hpp:24
#define FOCAL_PLANE_MEAS_OBSERVER_STATES
Definition CalcFocalPlaneAngles.hpp:25
Measurement class to calculate focal plane angles from tgt and observer state.
Definition CalcFocalPlaneAngles.hpp:53
int calculateMeasurements(T time, const std::array< T, 6 > &tar_state, const std::array< T, 3 > &obs_state, std::array< T, 2 > &out_measurements)
Function to focal plane angles.
Definition CalcFocalPlaneAngles.hpp:67
Definition Measurements.hpp:39
#define NO_ERROR
Definition clockwerkerrors.h:31
#define ERROR_DIVIDE_BY_ZERO
Definition clockwerkerrors.h:46
#define SAFE_MATH_ZERO_TOLERANCE
Definition safemath.hpp:30