19#include "Navigation/Transformations/Units.hpp"
140template<
typename Derived>
145 case Units::ImuAccelerometerUnits::m_s2:
147 case Units::ImuAccelerometerUnits::COUNT:
157template<
typename Derived>
162 case Units::ImuGyroscopeUnits::rad_s:
164 case Units::ImuGyroscopeUnits::deg_s:
165 return deg2rad(value);
166 case Units::ImuGyroscopeUnits::COUNT:
176template<
typename Derived>
181 case Units::ImuAccelerometerNoiseUnits::m_s2_sqrts:
183 case Units::ImuAccelerometerNoiseUnits::m_s2_sqrth:
185 case Units::ImuAccelerometerNoiseUnits::COUNT:
195template<
typename Derived>
200 case Units::ImuGyroscopeNoiseUnits::rad_s_sqrts:
202 case Units::ImuGyroscopeNoiseUnits::rad_s_sqrth:
204 case Units::ImuGyroscopeNoiseUnits::deg_s_sqrts:
205 return deg2rad(value);
206 case Units::ImuGyroscopeNoiseUnits::deg_s_sqrth:
207 return deg2rad(value) / 60.0;
208 case Units::ImuGyroscopeNoiseUnits::COUNT:
218template<
typename Derived>
223 case Units::ImuAccelerometerIRWUnits::m_s3_sqrts:
225 case Units::ImuAccelerometerIRWUnits::m_s3_sqrth:
227 case Units::ImuAccelerometerIRWUnits::COUNT:
237template<
typename Derived>
242 case Units::ImuGyroscopeIRWUnits::rad_s2_sqrts:
244 case Units::ImuGyroscopeIRWUnits::rad_s2_sqrth:
246 case Units::ImuGyroscopeIRWUnits::deg_s2_sqrts:
247 return deg2rad(value);
248 case Units::ImuGyroscopeIRWUnits::deg_s2_sqrth:
249 return deg2rad(value) / 60.0;
250 case Units::ImuGyroscopeIRWUnits::COUNT:
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
double convertUnit(const double &value, Units::CovarianceAccelUnits unit)
Converts the value depending on the unit provided.
ImuGyroscopeUnits
Possible units to specify an gyroscope bias with.
Definition Units.hpp:38
ImuAccelerometerIRWUnits
Possible units to specify an accelerometer IRW.
Definition Units.hpp:64
@ m_s3_sqrth
[m/s^3/sqrt(h)] (Standard deviation)
@ m_s3_sqrts
[m/s^3/sqrt(s)] (Standard deviation)
ImuAccelerometerNoiseUnits
Possible units to specify an accelerometer noise.
Definition Units.hpp:46
@ m_s2_sqrts
[m/s^2/sqrt(s)] (Standard deviation)
@ m_s2_sqrth
[m/s^2/sqrt(h)] (Standard deviation)
ImuGyroscopeIRWUnits
Possible units to specify an gyro RW.
Definition Units.hpp:72
@ rad_s2_sqrth
[rad/s^2/sqrt(h)] (Standard deviation)
@ deg_s2_sqrth
[deg/s^2/sqrt(h)] (Standard deviation)
@ deg_s2_sqrts
[deg/s^2/sqrt(s)] (Standard deviation)
@ rad_s2_sqrts
[rad/s^2/sqrt(s)] (Standard deviation)
ImuGyroscopeNoiseUnits
Possible units to specify an gyro noise.
Definition Units.hpp:54
@ deg_s_sqrth
[deg/s/sqrt(h)] (Standard deviation)
@ rad_s_sqrts
[rad/s/sqrt(s)] (Standard deviation)
@ rad_s_sqrth
[rad/s/sqrt(h)] (Standard deviation)
@ deg_s_sqrts
[deg/s/sqrt(s)] (Standard deviation)
ImuAccelerometerUnits
Possible units to specify an accelerometer with.
Definition Units.hpp:31
@ COUNT
Amount of items in the enum.
Defines how to save certain datatypes to json.