aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-08-27 10:16:18 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-08-27 10:16:18 +0200
commit70c9d48f6c47f3f3c5caae7643101e8eb90ebe57 (patch)
tree37e9ed0e5f08c9dccff8fb15a3629cc997ce85e8 /src
parent665a23259269d870e958543c6e6517323793c1dc (diff)
parentc98e47eecf81a1f4a2358de51e0ef28b33273cb2 (diff)
downloadpx4-firmware-70c9d48f6c47f3f3c5caae7643101e8eb90ebe57.tar.gz
px4-firmware-70c9d48f6c47f3f3c5caae7643101e8eb90ebe57.tar.bz2
px4-firmware-70c9d48f6c47f3f3c5caae7643101e8eb90ebe57.zip
Merge branch 'fmuv2_bringup' into multirotor
Diffstat (limited to 'src')
-rw-r--r--src/drivers/airspeed/airspeed.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/drivers/airspeed/airspeed.cpp b/src/drivers/airspeed/airspeed.cpp
index 5a8157deb..277d8249a 100644
--- a/src/drivers/airspeed/airspeed.cpp
+++ b/src/drivers/airspeed/airspeed.cpp
@@ -146,7 +146,14 @@ out:
int
Airspeed::probe()
{
- return measure();
+ /* on initial power up the device needs more than one retry
+ for detection. Once it is running then retries aren't
+ needed
+ */
+ _retries = 4;
+ int ret = measure();
+ _retries = 0;
+ return ret;
}
int