INSTINCT Code Coverage Report


Directory: src/
File: Navigation/Atmosphere/Ionosphere/IonosphericCorrections.cpp
Date: 2025-02-07 16:54:41
Exec Total Coverage
Lines: 8 8 100.0%
Functions: 2 2 100.0%
Branches: 7 10 70.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 /// @file IonosphericCorrections.cpp
10 /// @brief Ionospheric corrections
11 /// @author T. Topp (topp@ins.uni-stuttgart.de)
12 /// @date 2023-07-23
13
14 #include "IonosphericCorrections.hpp"
15 #include "NodeData/GNSS/GnssNavInfo.hpp"
16
17 namespace NAV
18 {
19
20 603 IonosphericCorrections::IonosphericCorrections(const std::vector<const GnssNavInfo*>& gnssNavInfos)
21 {
22
2/2
✓ Branch 5 taken 701 times.
✓ Branch 6 taken 603 times.
1304 for (const auto* gnssNavInfo : gnssNavInfos)
23 {
24
2/2
✓ Branch 6 taken 1255 times.
✓ Branch 7 taken 701 times.
1956 for (const auto& correction : gnssNavInfo->ionosphericCorrections.data())
25 {
26
2/4
✓ Branch 1 taken 1255 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 1255 times.
✗ Branch 4 not taken.
1255 if (!this->contains(correction.satSys, correction.alphaBeta))
27 {
28
1/2
✓ Branch 1 taken 1255 times.
✗ Branch 2 not taken.
1255 this->insert(correction.satSys, correction.alphaBeta, correction.data);
29 }
30 }
31 }
32 603 }
33
34 4304 IonosphericCorrections::IonosphericCorrections(std::vector<Corrections> corrections)
35 4304 : m_ionosphericCorrections(std::move(corrections)) {}
36
37 } // namespace NAV
38