0.3.0
Loading...
Searching...
No Matches
Mechanization.cpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9#include "Mechanization.hpp"
10
11namespace NAV
12{
13
15{
16 j = json{
17 { "gravitationModel", data.gravitationModel },
18 { "coriolisAccelerationCompensationEnabled", data.coriolisAccelerationCompensationEnabled },
19 { "centrifgalAccelerationCompensationEnabled", data.centrifgalAccelerationCompensationEnabled },
20 { "angularRateEarthRotationCompensationEnabled", data.angularRateEarthRotationCompensationEnabled },
21 { "angularRateTransportRateCompensationEnabled", data.angularRateTransportRateCompensationEnabled },
22 };
23}
24
26{
27 if (j.contains("gravitationModel")) { j.at("gravitationModel").get_to(data.gravitationModel); }
28 if (j.contains("coriolisAccelerationCompensationEnabled")) { j.at("coriolisAccelerationCompensationEnabled").get_to(data.coriolisAccelerationCompensationEnabled); }
29 if (j.contains("centrifgalAccelerationCompensationEnabled")) { j.at("centrifgalAccelerationCompensationEnabled").get_to(data.centrifgalAccelerationCompensationEnabled); }
30 if (j.contains("angularRateEarthRotationCompensationEnabled")) { j.at("angularRateEarthRotationCompensationEnabled").get_to(data.angularRateEarthRotationCompensationEnabled); }
31 if (j.contains("angularRateTransportRateCompensationEnabled")) { j.at("angularRateTransportRateCompensationEnabled").get_to(data.angularRateTransportRateCompensationEnabled); }
32}
33
34} // namespace NAV
nlohmann::json json
json namespace
Inertial Navigation Mechanization Functions.
void to_json(json &j, const Node &node)
Converts the provided node into a json object.
Definition Node.cpp:990
void from_json(const json &j, Node &node)
Converts the provided json object into a node object.
Definition Node.cpp:1007
Values needed to calculate the PosVelAttDerivative for the local-navigation frame.
bool centrifgalAccelerationCompensationEnabled
Apply the centrifugal acceleration compensation to the measured accelerations.
bool angularRateEarthRotationCompensationEnabled
Apply the Earth rotation rate compensation to the measured angular rates.
bool angularRateTransportRateCompensationEnabled
Apply the transport rate compensation to the measured angular rates.
GravitationModel gravitationModel
Gravity Model to use.
bool coriolisAccelerationCompensationEnabled
Apply the Coriolis acceleration compensation to the measured accelerations.