0.3.0
Loading...
Searching...
No Matches
Units.hpp File Reference

Units used by the system model parameters. More...

Go to the source code of this file.

Enumerations

enum class  NAV::Units::CovarianceAccelUnits : uint8_t {
  m2_s3 ,
  m_sqrts3 ,
  COUNT
}
 Possible Units for the Standard deviation of the acceleration due to user motion. More...
 
enum class  NAV::Units::CovarianceClkFrequencyDriftUnits : uint8_t {
  m2_s3 ,
  m_sqrts3 ,
  COUNT
}
 Possible Units for the Standard deviation of the clock frequency drift. More...
 
enum class  NAV::Units::CovarianceClkPhaseDriftUnits : uint8_t {
  m2_s ,
  m_sqrts ,
  COUNT
}
 Possible Units for the Standard deviation of the clock phase drift. More...
 

Functions

double NAV::convertUnit (const double &value, Units::CovarianceAccelUnits unit)
 Converts the value depending on the unit provided.
 
double NAV::convertUnit (const double &value, Units::CovarianceClkFrequencyDriftUnits unit)
 Converts the value depending on the unit provided.
 
double NAV::convertUnit (const double &value, Units::CovarianceClkPhaseDriftUnits unit)
 Converts the value depending on the unit provided.
 
void NAV::Units::from_json (const json &j, CovarianceAccelUnits &data)
 Converts the provided json object into the data object.
 
void NAV::Units::from_json (const json &j, CovarianceClkFrequencyDriftUnits &data)
 Converts the provided json object into the data object.
 
void NAV::Units::from_json (const json &j, CovarianceClkPhaseDriftUnits &data)
 Converts the provided json object into the data object.
 
void NAV::Units::to_json (json &j, const CovarianceAccelUnits &data)
 Converts the provided data into a json object.
 
void NAV::Units::to_json (json &j, const CovarianceClkFrequencyDriftUnits &data)
 Converts the provided data into a json object.
 
void NAV::Units::to_json (json &j, const CovarianceClkPhaseDriftUnits &data)
 Converts the provided data into a json object.
 
std::string NAV::to_string (Units::CovarianceAccelUnits unit)
 Converts the unit into a string.
 
std::string NAV::to_string (Units::CovarianceClkFrequencyDriftUnits unit)
 Converts the unit into a string.
 
std::string NAV::to_string (Units::CovarianceClkPhaseDriftUnits unit)
 Converts the unit into a string.
 

Detailed Description

Units used by the system model parameters.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2024-08-20

Enumeration Type Documentation

◆ CovarianceAccelUnits

enum class NAV::Units::CovarianceAccelUnits : uint8_t
strong

Possible Units for the Standard deviation of the acceleration due to user motion.

Enumerator
m2_s3 

[ m^2 / s^3 ]

m_sqrts3 

[ m / √(s^3) ]

COUNT 

Amount of items in the enum.

◆ CovarianceClkFrequencyDriftUnits

enum class NAV::Units::CovarianceClkFrequencyDriftUnits : uint8_t
strong

Possible Units for the Standard deviation of the clock frequency drift.

Enumerator
m2_s3 

[ m^2 / s^3 ]

m_sqrts3 

[ m / √(s^3) ]

COUNT 

Amount of items in the enum.

◆ CovarianceClkPhaseDriftUnits

enum class NAV::Units::CovarianceClkPhaseDriftUnits : uint8_t
strong

Possible Units for the Standard deviation of the clock phase drift.

Enumerator
m2_s 

[ m^2 / s ]

m_sqrts 

[ m / √(s) ]

COUNT 

Amount of items in the enum.

Function Documentation

◆ convertUnit() [1/3]

double NAV::convertUnit ( const double & value,
Units::CovarianceAccelUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [2/3]

double NAV::convertUnit ( const double & value,
Units::CovarianceClkFrequencyDriftUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [3/3]

double NAV::convertUnit ( const double & value,
Units::CovarianceClkPhaseDriftUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ from_json() [1/3]

void NAV::Units::from_json ( const json & j,
CovarianceAccelUnits & data )

Converts the provided json object into the data object.

Parameters
[in]jJson object with the needed values
[out]dataObject to fill from the json

◆ from_json() [2/3]

void NAV::Units::from_json ( const json & j,
CovarianceClkFrequencyDriftUnits & data )

Converts the provided json object into the data object.

Parameters
[in]jJson object with the needed values
[out]dataObject to fill from the json

◆ from_json() [3/3]

void NAV::Units::from_json ( const json & j,
CovarianceClkPhaseDriftUnits & data )

Converts the provided json object into the data object.

Parameters
[in]jJson object with the needed values
[out]dataObject to fill from the json

◆ to_json() [1/3]

void NAV::Units::to_json ( json & j,
const CovarianceAccelUnits & data )

Converts the provided data into a json object.

Parameters
[out]jJson object which gets filled with the info
[in]dataData to convert into json

◆ to_json() [2/3]

void NAV::Units::to_json ( json & j,
const CovarianceClkFrequencyDriftUnits & data )

Converts the provided data into a json object.

Parameters
[out]jJson object which gets filled with the info
[in]dataData to convert into json

◆ to_json() [3/3]

void NAV::Units::to_json ( json & j,
const CovarianceClkPhaseDriftUnits & data )

Converts the provided data into a json object.

Parameters
[out]jJson object which gets filled with the info
[in]dataData to convert into json

◆ to_string() [1/3]

std::string NAV::to_string ( Units::CovarianceAccelUnits unit)
nodiscard

Converts the unit into a string.

Parameters
[in]unitUnit

◆ to_string() [2/3]

std::string NAV::to_string ( Units::CovarianceClkFrequencyDriftUnits unit)
nodiscard

Converts the unit into a string.

Parameters
[in]unitUnit

◆ to_string() [3/3]

std::string NAV::to_string ( Units::CovarianceClkPhaseDriftUnits unit)
nodiscard

Converts the unit into a string.

Parameters
[in]unitUnit