mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +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();
|
||||
|
||||
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:
|
||||
virtual void doObjectAndWaitImpl() = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user