Skip to content

Commit

Permalink
Check that home position is valid in RTL (#15964)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Kent authored and dagar committed Nov 12, 2020
1 parent 09d8731 commit 9ae6fd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/navigator/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ void RTL::find_RTL_destination()
return;
}

if (!_navigator->home_position_valid()) {
return;
}

_destination_check_time = hrt_absolute_time();

// get home position:
Expand Down

0 comments on commit 9ae6fd4

Please sign in to comment.