Browse Source

Copter: fix a typo in a variable name hidden under RANGEFINDER_TILT_CORRECTION == DISABLED

This fixes compilation
copter407
Dr.-Ing. Amilcar do Carmo Lucas 5 years ago committed by Randy Mackay
parent
commit
ff1109cdae
  1. 2
      ArduCopter/sensors.cpp

2
ArduCopter/sensors.cpp

@ -33,7 +33,7 @@ void Copter::read_rangefinder(void) @@ -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

Loading…
Cancel
Save