mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
OP-1481 specified default timeout for AbstractUAVObjectHelper
This commit is contained in:
parent
a045b10472
commit
92e3779997
@ -43,7 +43,10 @@ public:
|
|||||||
virtual ~AbstractUAVObjectHelper();
|
virtual ~AbstractUAVObjectHelper();
|
||||||
|
|
||||||
enum Result { SUCCESS, FAIL, TIMEOUT };
|
enum Result { SUCCESS, FAIL, TIMEOUT };
|
||||||
Result doObjectAndWait(UAVObject *object, int timeout);
|
|
||||||
|
// default timeout = 3 x 250ms + 50ms safety margin = 800ms
|
||||||
|
// where 3 is the number of UAVTalk retries and 250ms is the UAVTalk timeout
|
||||||
|
Result doObjectAndWait(UAVObject *object, int timeout = 800);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void doObjectAndWaitImpl() = 0;
|
virtual void doObjectAndWaitImpl() = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user