Copter: float constant fix for heli's check_dynamic_flight

No functional change
This commit is contained in:
Randy Mackay 2015-07-13 13:59:29 +09:00
parent 5541899a99
commit 35dd7322d2
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ void Copter::check_dynamic_flight(void)
moving = (velocity >= HELI_DYNAMIC_FLIGHT_SPEED_MIN);
}else{
// with no GPS lock base it on throttle and forward lean angle
moving = (motors.get_throttle() > 800.0 || ahrs.pitch_sensor < -1500);
moving = (motors.get_throttle() > 800.0f || ahrs.pitch_sensor < -1500);
}
if (moving) {