QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSInputMonitor Class Reference

Classifies why a session that stays connected delivers no position, from the receive cycles of the last window. More...

#include <GPSInputMonitor.h>

Public Member Functions

 GPSInputMonitor (uint64_t startUs, std::chrono::milliseconds window)
bool update (const GPSReceiveResult &result, bool identified, uint64_t nowUs)
GPSInputProblem problem () const

Detailed Description

Classifies why a session that stays connected delivers no position, from the receive cycles of the last window.

Definition at line 11 of file GPSInputMonitor.h.

Constructor & Destructor Documentation

◆ GPSInputMonitor()

GPSInputMonitor::GPSInputMonitor ( uint64_t startUs,
std::chrono::milliseconds window )
inline

Definition at line 14 of file GPSInputMonitor.h.

Member Function Documentation

◆ problem()

GPSInputProblem GPSInputMonitor::problem ( ) const
inlinenodiscard

Definition at line 48 of file GPSInputMonitor.h.

◆ update()

bool GPSInputMonitor::update ( const GPSReceiveResult & result,
bool identified,
uint64_t nowUs )
inline

Records one receive cycle at nowUs; identified is whether the input's protocol was identified.

Returns
whether problem() changed.

Definition at line 21 of file GPSInputMonitor.h.

References Data, MonotonicClock::fresh(), Idle, GPSReceiveResult::liveness, Position, and GPSReceiveResult::updates.


The documentation for this class was generated from the following file: