We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 778adcb commit a1dbebcCopy full SHA for a1dbebc
1 file changed
src/modules/navigator/rtl.cpp
@@ -370,8 +370,7 @@ void RTL::setRtlTypeAndDestination()
370
371
} else if (_param_rtl_type.get() == 6) {
372
// 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());
+ const float rtl_alt_home = computeReturnAltitude(destination);
375
_rtl_direct.setRtlAlt(rtl_alt_home);
376
_rtl_direct.setRtlPosition(destination, landing_loiter);
377
0 commit comments