Fix for bad RTL tracking in Autopilot

This commit is contained in:
Jason Short 2011-11-07 21:09:29 -08:00
parent dc6fb484cd
commit 4afc3e9f17
1 changed files with 5 additions and 0 deletions

View File

@ -466,7 +466,12 @@ static bool verify_loiter_turns()
static bool verify_RTL()
{
// loiter at the WP
wp_control = WP_MODE;
if (wp_distance <= g.waypoint_radius) {
wp_control = LOITER_MODE;
//gcs_send_text_P(SEVERITY_LOW,PSTR("Reached home"));
return true;
}else{