mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
Check that home position is valid in RTL (#15964)
This commit is contained in:
@@ -76,6 +76,10 @@ void RTL::find_RTL_destination()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!_navigator->home_position_valid()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_destination_check_time = hrt_absolute_time();
|
_destination_check_time = hrt_absolute_time();
|
||||||
|
|
||||||
// get home position:
|
// get home position:
|
||||||
|
|||||||
Reference in New Issue
Block a user