Skip to content

Commit a1dbebc

Browse files
committed
fixup! Add new RTL_TYPE for prioritizing home over rally points with a reachability condition
1 parent 778adcb commit a1dbebc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/modules/navigator/rtl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,7 @@ void RTL::setRtlTypeAndDestination()
370370

371371
} else if (_param_rtl_type.get() == 6) {
372372
// estimate time to fly home using the same infrastructure as the battery failsafe
373-
const float rtl_alt_home = computeReturnAltitude(destination, DestinationType::DESTINATION_TYPE_HOME,
374-
(float)_param_rtl_cone_ang.get());
373+
const float rtl_alt_home = computeReturnAltitude(destination);
375374
_rtl_direct.setRtlAlt(rtl_alt_home);
376375
_rtl_direct.setRtlPosition(destination, landing_loiter);
377376

0 commit comments

Comments
 (0)