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

#include <GPSCommandChannel.h>

Public Member Functions

 GPSDeadlineScope (GPSCommandChannel &channel, std::chrono::milliseconds timeout)
 
 GPSDeadlineScope (GPSCommandChannel &channel, GPSDeadline deadline)
 
 ~GPSDeadlineScope ()
 

Detailed Description

Tightens the operation deadline for its lifetime: every read, write, wait and command it encloses completes by the earlier of the enclosing deadline and the scope's own. Scopes nest, and destruction restores the enclosing one.

Definition at line 61 of file GPSCommandChannel.h.

Constructor & Destructor Documentation

◆ GPSDeadlineScope() [1/2]

GPSDeadlineScope::GPSDeadlineScope ( GPSCommandChannel &  channel,
std::chrono::milliseconds  timeout 
)

Definition at line 27 of file GPSCommandChannel.cc.

◆ GPSDeadlineScope() [2/2]

GPSDeadlineScope::GPSDeadlineScope ( GPSCommandChannel &  channel,
GPSDeadline  deadline 
)

Definition at line 31 of file GPSCommandChannel.cc.

References GPSDeadline::untilUs.

◆ ~GPSDeadlineScope()

GPSDeadlineScope::~GPSDeadlineScope ( )

Definition at line 38 of file GPSCommandChannel.cc.


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