0.2.0
Loading...
Searching...
No Matches
Clock.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
13
14#pragma once
15
18
19namespace NAV
20{
21
23class Clock
24{
25 public:
28 {
30 double bias{};
31 double drift{};
32 };
33
35 Clock() = default;
37 virtual ~Clock() = default;
39 Clock(const Clock&) = default;
41 Clock(Clock&&) = default;
43 Clock& operator=(const Clock&) = delete;
45 Clock& operator=(Clock&&) = delete;
46
51 [[nodiscard]] virtual Corrections calcClockCorrections(const InsTime& recvTime, double dist, const Frequency& freq) const = 0;
52};
53
54} // namespace NAV
Frequency definition for different satellite systems.
The class is responsible for all time-related tasks.
Abstract satellite clock information.
Definition Clock.hpp:24
Clock & operator=(Clock &&)=delete
Move assignment operator.
virtual ~Clock()=default
Destructor.
Clock & operator=(const Clock &)=delete
Copy assignment operator.
Clock()=default
Default Constructor.
Clock(const Clock &)=default
Copy constructor.
Clock(Clock &&)=default
Move constructor.
virtual Corrections calcClockCorrections(const InsTime &recvTime, double dist, const Frequency &freq) const =0
Calculates clock bias and drift of the satellite.
Frequency definition for different satellite systems.
Definition Frequency.hpp:59
The class is responsible for all time-related tasks.
Definition InsTime.hpp:667
Satellite clock corrections.
Definition Clock.hpp:28
double drift
Satellite clock drift [s/s].
Definition Clock.hpp:31
InsTime transmitTime
Transmit time of the signal.
Definition Clock.hpp:29
double bias
Satellite clock bias [s].
Definition Clock.hpp:30