mirror of https://github.com/ArduPilot/ardupilot
added false start fix for takeoff
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1896 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
b1d76e40c7
commit
4ae6c5c0ac
|
@ -285,6 +285,11 @@ void do_loiter_time()
|
|||
bool verify_takeoff()
|
||||
{
|
||||
Serial.print("vt ");
|
||||
|
||||
// wait until we are ready!
|
||||
if(g.rc_3.control_in == 0)
|
||||
return false;
|
||||
|
||||
if (current_loc.alt > next_WP.alt){
|
||||
Serial.println("Y");
|
||||
takeoff_complete = true;
|
||||
|
|
Loading…
Reference in New Issue