0.4.1
Loading...
Searching...
No Matches
WiFiObs.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 WiFiObs.hpp
10/// @brief Espressif Observation Class
11/// @author R. Lintz (r-lintz@gmx.de) (master thesis)
12/// @date 2024-01-08
13
14#pragma once
15
16#include "NodeData/NodeData.hpp"
18
19namespace NAV
20{
21/// Espressif Observation Class
22class WiFiObs : public NodeData
23{
24 public:
25 /// @brief Returns the type of the data class
26 /// @return The data type
27 [[nodiscard]] static std::string type()
28 {
29 return "WiFiObs";
30 }
31
32 /// @brief Returns the type of the data class
33 /// @return The data type
34 [[nodiscard]] std::string getType() const override { return type(); }
35
36 /// @brief Returns the parent types of the data class
37 /// @return The parent data types
38 [[nodiscard]] static std::vector<std::string> parentTypes()
39 {
40 return { NodeData::type() };
41 }
42
43 /// MAC address of the device
44 std::string macAddress;
45 /// Distance to the device
46 double distance = 0;
47 /// Standard deviation of the distance
48 double distanceStd = 0;
49 /// Struct for time sync
51 {
52 /// @brief Time since last SyncIn trigger.
53 ///
54 /// The time since the last SyncIn event trigger expressed in nano seconds.
55 uint64_t timeSyncIn{};
56 /// @brief SyncIn trigger count.
57 ///
58 /// The number of SyncIn trigger events that have occurred.
59 uint32_t syncInCnt{};
60 };
61 /// Time of observation
63};
64
65} // namespace NAV
Abstract NodeData Class.
Binary Group 5 - Attitude Outputs.
NodeData()=default
Default constructor.
static std::string type()
Returns the type of the data class.
Definition NodeData.hpp:45
Espressif Observation Class.
Definition WiFiObs.hpp:23
double distanceStd
Standard deviation of the distance.
Definition WiFiObs.hpp:48
std::string macAddress
MAC address of the device.
Definition WiFiObs.hpp:44
static std::string type()
Returns the type of the data class.
Definition WiFiObs.hpp:27
double distance
Distance to the device.
Definition WiFiObs.hpp:46
TimeSyncInput timeOutputs
Time of observation.
Definition WiFiObs.hpp:62
static std::vector< std::string > parentTypes()
Returns the parent types of the data class.
Definition WiFiObs.hpp:38
std::string getType() const override
Returns the type of the data class.
Definition WiFiObs.hpp:34
Struct for time sync.
Definition WiFiObs.hpp:51
uint64_t timeSyncIn
Time since last SyncIn trigger.
Definition WiFiObs.hpp:55
uint32_t syncInCnt
SyncIn trigger count.
Definition WiFiObs.hpp:59