Line | Branch | Exec | Source |
---|---|---|---|
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 | |||
11 | namespace NAV | ||
12 | { | ||
13 | |||
14 | ✗ | void to_json(json& j, const PosVelAttDerivativeConstants& data) | |
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 | |||
25 | 18 | void from_json(const json& j, PosVelAttDerivativeConstants& data) | |
26 | { | ||
27 |
1/2✓ Branch 1 taken 18 times.
✗ Branch 2 not taken.
|
18 | if (j.contains("gravitationModel")) { j.at("gravitationModel").get_to(data.gravitationModel); } |
28 |
1/2✓ Branch 1 taken 18 times.
✗ Branch 2 not taken.
|
18 | if (j.contains("coriolisAccelerationCompensationEnabled")) { j.at("coriolisAccelerationCompensationEnabled").get_to(data.coriolisAccelerationCompensationEnabled); } |
29 |
1/2✓ Branch 1 taken 18 times.
✗ Branch 2 not taken.
|
18 | if (j.contains("centrifgalAccelerationCompensationEnabled")) { j.at("centrifgalAccelerationCompensationEnabled").get_to(data.centrifgalAccelerationCompensationEnabled); } |
30 |
1/2✓ Branch 1 taken 18 times.
✗ Branch 2 not taken.
|
18 | if (j.contains("angularRateEarthRotationCompensationEnabled")) { j.at("angularRateEarthRotationCompensationEnabled").get_to(data.angularRateEarthRotationCompensationEnabled); } |
31 |
1/2✓ Branch 1 taken 18 times.
✗ Branch 2 not taken.
|
18 | if (j.contains("angularRateTransportRateCompensationEnabled")) { j.at("angularRateTransportRateCompensationEnabled").get_to(data.angularRateTransportRateCompensationEnabled); } |
32 | 18 | } | |
33 | |||
34 | } // namespace NAV | ||
35 |