QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSClock.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <chrono>
4
#include <cstdint>
5
#include <functional>
6
7
#include "
MonotonicClock.h
"
8
10
struct
GPSClock
11
{
12
std::function<uint64_t()>
nowUs
=
MonotonicClock::nowUs
;
14
std::function<bool(std::chrono::microseconds)>
wait
{};
15
};
MonotonicClock.h
MonotonicClock::nowUs
uint64_t nowUs()
Definition
MonotonicClock.h:10
GPSClock
The monotonic clock receiver sessions run on: the steady clock unless tests inject a virtual one.
Definition
GPSClock.h:11
GPSClock::wait
std::function< bool(std::chrono::microseconds)> wait
Waits duration on this clock; false when the wait was cancelled. Empty means a real wait.
Definition
GPSClock.h:14
GPSClock::nowUs
std::function< uint64_t()> nowUs
Definition
GPSClock.h:12
src
GPS
Core
Common
GPSClock.h
Generated by
1.9.8