0.4.1
Loading...
Searching...
No Matches
UbloxGnssObsConverter.hpp
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/// @file UbloxGnssObsConverter.hpp
10/// @brief Convert UbloxObs into GnssObs
11/// @author T. Topp (topp@ins.uni-stuttgart.de)
12/// @date 2024-02-05
13
14#pragma once
15
16#include <unordered_set>
17
20
21namespace NAV
22{
23/// Convert UbloxObs into GnssObs
25{
26 public:
27 /// @brief Default constructor
29 /// @brief Destructor
30 ~UbloxGnssObsConverter() override;
31 /// @brief Copy constructor
33 /// @brief Move constructor
35 /// @brief Copy assignment operator
37 /// @brief Move assignment operator
39
40 /// @brief String representation of the Class Type
41 [[nodiscard]] static std::string typeStatic();
42
43 /// @brief String representation of the Class Type
44 [[nodiscard]] std::string type() const override;
45
46 /// @brief String representation of the Class Category
47 [[nodiscard]] static std::string category();
48
49 private:
50 constexpr static size_t OUTPUT_PORT_INDEX_GNSS_OBS = 0; ///< @brief Flow
51
52 /// List of signals of the last epoch. To set the LLI flag
53 std::unordered_set<SatSigId> _lastEpochObs;
54
55 /// @brief Initialize the node
56 bool initialize() override;
57
58 /// @brief Data receive function
59 /// @param[in] queue Queue with all the received data messages
60 /// @param[in] pinIdx Index of the pin the data is received on
61 void receiveObs(InputPin::NodeDataQueue& queue, size_t pinIdx);
62};
63
64} // namespace NAV
Node Class.
Structs identifying a unique satellite.
TsDeque< std::shared_ptr< const NAV::NodeData > > NodeDataQueue
Node data queue type.
Definition Pin.hpp:707
Node(std::string name)
Constructor.
Definition Node.cpp:30
void receiveObs(InputPin::NodeDataQueue &queue, size_t pinIdx)
Data receive function.
UbloxGnssObsConverter(const UbloxGnssObsConverter &)=delete
Copy constructor.
static constexpr size_t OUTPUT_PORT_INDEX_GNSS_OBS
Flow.
UbloxGnssObsConverter & operator=(const UbloxGnssObsConverter &)=delete
Copy assignment operator.
UbloxGnssObsConverter & operator=(UbloxGnssObsConverter &&)=delete
Move assignment operator.
bool initialize() override
Initialize the node.
static std::string category()
String representation of the Class Category.
~UbloxGnssObsConverter() override
Destructor.
UbloxGnssObsConverter()
Default constructor.
static std::string typeStatic()
String representation of the Class Type.
std::string type() const override
String representation of the Class Type.
UbloxGnssObsConverter(UbloxGnssObsConverter &&)=delete
Move constructor.
std::unordered_set< SatSigId > _lastEpochObs
List of signals of the last epoch. To set the LLI flag.