mirror of https://github.com/ArduPilot/ardupilot
changed the way takeoff complete is figured. Looking for high throttle.
This commit is contained in:
parent
b8349f5486
commit
09f4a16bfb
|
@ -1624,11 +1624,13 @@ void update_throttle_mode(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Code to manage the Copter state
|
if (takeoff_complete == false && motors.armed()){
|
||||||
if ((millis() - takeoff_timer) > 5000){
|
if ((g.rc_3.control_in > g.throttle_cruise)){
|
||||||
// we must be in the air by now
|
// we must be in the air by now
|
||||||
takeoff_complete = true;
|
takeoff_complete = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
// we are on the ground
|
// we are on the ground
|
||||||
takeoff_complete = false;
|
takeoff_complete = false;
|
||||||
|
|
Loading…
Reference in New Issue