Browse Source

Copter: update get_non_takeoff_throttle for 0 to 1 range

mission-4.1.18
Leonard Hall 9 years ago committed by Randy Mackay
parent
commit
37e6977813
  1. 2
      ArduCopter/Attitude.cpp

2
ArduCopter/Attitude.cpp

@ -203,7 +203,7 @@ float Copter::get_pilot_desired_climb_rate(float throttle_control) @@ -203,7 +203,7 @@ float Copter::get_pilot_desired_climb_rate(float throttle_control)
// get_non_takeoff_throttle - a throttle somewhere between min and mid throttle which should not lead to a takeoff
float Copter::get_non_takeoff_throttle()
{
return (g.throttle_mid / 2.0f);
return (((float)g.throttle_mid/1000.0f)/2.0f);
}
float Copter::get_takeoff_trigger_throttle()

Loading…
Cancel
Save