We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 364dcf5 commit a9d3e35Copy full SHA for a9d3e35
1 file changed
src/modules/navigator/rtl.cpp
@@ -369,7 +369,7 @@ void RTL::setRtlTypeAndDestination()
369
}
370
371
} else if (_param_rtl_type.get() == 6) {
372
- // estimate time to fly home using the same infrastructure as the battery failsafe
+ // Set _rtl_direct with the home destination so calc_rtl_time_estimate() can check its reachability
373
const float rtl_alt_home = computeReturnAltitude(destination);
374
_rtl_direct.setRtlAlt(rtl_alt_home);
375
_rtl_direct.setRtlPosition(destination, landing_loiter);
0 commit comments