| 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 "Orbit.hpp" | ||
| 10 | |||
| 11 | namespace NAV | ||
| 12 | { | ||
| 13 | 13223 | Orbit::Pos Orbit::calcSatellitePos(const InsTime& transTime) const | |
| 14 | { | ||
| 15 |
1/2✓ Branch 1 taken 13223 times.
✗ Branch 2 not taken.
|
13223 | auto posVelAtt = calcSatelliteData(transTime, Calc_Position); |
| 16 |
1/2✓ Branch 1 taken 13223 times.
✗ Branch 2 not taken.
|
26446 | return { .e_pos = posVelAtt.e_pos }; |
| 17 | } | ||
| 18 | |||
| 19 | 294904 | Orbit::PosVel Orbit::calcSatellitePosVel(const InsTime& transTime) const | |
| 20 | { | ||
| 21 |
1/2✓ Branch 2 taken 294905 times.
✗ Branch 3 not taken.
|
294904 | auto posVelAtt = calcSatelliteData(transTime, Calc_Position | Calc_Velocity); |
| 22 |
2/4✓ Branch 1 taken 294906 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 294905 times.
✗ Branch 5 not taken.
|
589810 | return { .e_pos = posVelAtt.e_pos, .e_vel = posVelAtt.e_vel }; |
| 23 | } | ||
| 24 | |||
| 25 | 6432 | Orbit::PosVelAccel Orbit::calcSatellitePosVelAccel(const InsTime& transTime) const | |
| 26 | { | ||
| 27 | 6432 | return calcSatelliteData(transTime, Calc_Position | Calc_Velocity | Calc_Acceleration); | |
| 28 | } | ||
| 29 | |||
| 30 | } // namespace NAV | ||
| 31 |