From 94222d01952267871e2f687a171d2882ce05486a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 1 Nov 2019 09:34:33 +1100 Subject: [PATCH] Copter: correct compilation when rangefinder tilt correction disabled --- ArduCopter/sensors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/sensors.cpp b/ArduCopter/sensors.cpp index 1982632c8d..ef9487ca34 100644 --- a/ArduCopter/sensors.cpp +++ b/ArduCopter/sensors.cpp @@ -33,7 +33,7 @@ void Copter::read_rangefinder(void) #if RANGEFINDER_TILT_CORRECTION == ENABLED const float tilt_correction = MAX(0.707f, ahrs.get_rotation_body_to_ned().c.z); #else - const float tile_correction = 1.0f; + const float tilt_correction = 1.0f; #endif // iterate through downward and upward facing lidar