26 LOG_WARN(
"Could not parse '{}' into CovarianceAccelUnits. Consider resaving the flow", j.dump());
29 std::string
str = j.get<std::string>();
49 LOG_WARN(
"Could not parse '{}' into CovarianceAngularVelocityUnits. Consider resaving the flow", j.dump());
52 std::string
str = j.get<std::string>();
72 LOG_WARN(
"Could not parse '{}' into CovarianceClkPhaseDriftUnits. Consider resaving the flow", j.dump());
75 std::string
str = j.get<std::string>();
95 LOG_WARN(
"Could not parse '{}' into CovarianceClkFrequencyDriftUnits. Consider resaving the flow", j.dump());
98 std::string
str = j.get<std::string>();
119 return std::pow(value, 2);
133 return std::pow(value, 2);
137 return std::pow(
deg2rad(value), 2);
141 return std::pow(
deg2rad(value) / 60.0, 2);
155 return std::pow(value, 2);
169 return std::pow(value, 2);
203 return "deg^2 s/min^2";
205 return "deg √(s)/min";
nlohmann::json json
json namespace
Units used by the system model parameters.
Utility class for logging to console and file.
#define LOG_WARN
Error occurred, but a fallback option exists and program continues to work normally.
void to_json(json &j, const PositionUncertaintyUnits &data)
Converts the provided data into a json object.
CovarianceAngularVelocityUnits
Possible Units for the Standard deviation of the rotation velocity.
@ deg_sqrts
[ deg / √(s) ]
@ rad_sqrts
[ rad / √(s) ]
@ degsqrts_min
[ deg √(s) / min ]
@ COUNT
Amount of items in the enum.
@ deg2s_min2
[ deg^2 s / min^2 ]
CovarianceClkPhaseDriftUnits
Possible Units for the Standard deviation of the clock phase drift.
@ COUNT
Amount of items in the enum.
CovarianceAccelUnits
Possible Units for the Standard deviation of the acceleration due to user motion.
@ COUNT
Amount of items in the enum.
void from_json(const json &j, PositionUncertaintyUnits &data)
Converts the provided json object into the data object.
CovarianceClkFrequencyDriftUnits
Possible Units for the Standard deviation of the clock frequency drift.
@ COUNT
Amount of items in the enum.
const char * to_string(gui::widgets::PositionWithFrame::ReferenceFrame refFrame)
Converts the enum to a string.
double convertUnit(const double &value, Units::PositionUncertaintyUnits unit)
Converts the value depending on the unit provided.
constexpr auto deg2rad(const T °)
Convert Degree to Radians.