1
0
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:
Philippe Renon 2014-09-16 08:44:58 +02:00
parent a045b10472
commit 92e3779997

View File

@ -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;