aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorVasily Dybala <dibalavs@yandex.ru>2015-02-25 22:49:02 +0300
committerVasily Dybala <dibalavs@yandex.ru>2015-02-26 23:19:12 +0300
commit6d1df8f721f5410b566f616a807bfd9060e830bd (patch)
tree5c527a29e94a303d74dc1f4ec5c6a1cadc4544d2 /src/modules
parent6d2e8b9d08ec3ce811cd0fc4cc5a1c561dee2195 (diff)
downloadpx4-firmware-6d1df8f721f5410b566f616a807bfd9060e830bd.tar.gz
px4-firmware-6d1df8f721f5410b566f616a807bfd9060e830bd.tar.bz2
px4-firmware-6d1df8f721f5410b566f616a807bfd9060e830bd.zip
Update land detector parameters at startup.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/land_detector/FixedwingLandDetector.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/land_detector/FixedwingLandDetector.cpp b/src/modules/land_detector/FixedwingLandDetector.cpp
index 8e5bcf7ba..e26954d1a 100644
--- a/src/modules/land_detector/FixedwingLandDetector.cpp
+++ b/src/modules/land_detector/FixedwingLandDetector.cpp
@@ -66,6 +66,8 @@ void FixedwingLandDetector::initialize()
// Subscribe to local position and airspeed data
_vehicleLocalPositionSub = orb_subscribe(ORB_ID(vehicle_local_position));
_airspeedSub = orb_subscribe(ORB_ID(airspeed));
+
+ updateParameterCache(true);
}
void FixedwingLandDetector::updateSubscriptions()