INSTINCT Code Coverage Report


Directory: src/
File: Navigation/GNSS/Satellite/internal/Orbit.cpp
Date: 2025-02-07 16:54:41
Exec Total Coverage
Lines: 8 8 100.0%
Functions: 3 3 100.0%
Branches: 5 10 50.0%

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 51732 Orbit::PosVel Orbit::calcSatellitePosVel(const InsTime& transTime) const
20 {
21
1/2
✓ Branch 2 taken 51732 times.
✗ Branch 3 not taken.
51732 auto posVelAtt = calcSatelliteData(transTime, Calc_Position | Calc_Velocity);
22
2/4
✓ Branch 1 taken 51732 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 51732 times.
✗ Branch 5 not taken.
103464 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