|
QGroundControl
Ground Control Station for MAVLink Drones
|
Host-timed survey-in duration for receivers that report completion but not elapsed time. More...
#include <GPSSurveyClock.h>
Public Member Functions | |
| void | start (uint64_t nowUs) |
| void | reset () |
| void | stop (uint64_t nowUs) |
| Freezes the duration at its final value. | |
| bool | running () const |
| bool | update (uint64_t nowUs) |
| std::chrono::seconds | duration () const |
| void | start (GPSDecodeContext &context) |
| Starts timing and publishes the survey as active. | |
| void | publishProgress (GPSDecodeContext &context) |
| Publishes the active survey when its whole-second duration advanced. | |
| void | finish (GPSDecodeContext &context, bool valid, const GPSEllipsoidPosition &position={}) |
| Stops timing and publishes the finished survey, valid at position or failed. | |
Host-timed survey-in duration for receivers that report completion but not elapsed time.
Definition at line 10 of file GPSSurveyClock.h.
|
inline |
Definition at line 48 of file GPSSurveyClock.h.
Referenced by publishProgress(), and start().
|
inline |
Stops timing and publishes the finished survey, valid at position or failed.
Definition at line 66 of file GPSSurveyClock.h.
|
inline |
Publishes the active survey when its whole-second duration advanced.
Definition at line 58 of file GPSSurveyClock.h.
References duration(), GPSDecodeContext::nowUs(), GPSDecodeContext::publishSurvey(), and update().
|
inline |
Definition at line 19 of file GPSSurveyClock.h.
|
inline |
Definition at line 32 of file GPSSurveyClock.h.
|
inline |
Starts timing and publishes the survey as active.
Definition at line 51 of file GPSSurveyClock.h.
References duration(), GPSDecodeContext::nowUs(), GPSDecodeContext::publishSurvey(), and start().
|
inline |
Definition at line 13 of file GPSSurveyClock.h.
Referenced by start().
|
inline |
Freezes the duration at its final value.
Definition at line 26 of file GPSSurveyClock.h.
References update().
|
inline |
Definition at line 35 of file GPSSurveyClock.h.
Referenced by publishProgress(), and stop().