Skip to content

Commit

Permalink
Check that home position is valid in RTL (PX4#15964)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Kent authored and mvacanti committed Nov 27, 2020
1 parent 89d7ce6 commit aef7285
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 aef7285

Please sign in to comment.