mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Fix for bad RTL tracking in Autopilot
This commit is contained in:
parent
dc6fb484cd
commit
4afc3e9f17
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user