Copter: correct compilation when rangefinder tilt correction disabled

This commit is contained in:
Peter Barker 2019-11-01 09:34:33 +11:00 committed by Peter Barker
parent 81f0141da5
commit 94222d0195
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ void Copter::read_rangefinder(void)
#if RANGEFINDER_TILT_CORRECTION == ENABLED #if RANGEFINDER_TILT_CORRECTION == ENABLED
const float tilt_correction = MAX(0.707f, ahrs.get_rotation_body_to_ned().c.z); const float tilt_correction = MAX(0.707f, ahrs.get_rotation_body_to_ned().c.z);
#else #else
const float tile_correction = 1.0f; const float tilt_correction = 1.0f;
#endif #endif
// iterate through downward and upward facing lidar // iterate through downward and upward facing lidar