Skip to content

Commit a9d3e35

Browse files
committed
Add descriptive comment
1 parent 364dcf5 commit a9d3e35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/navigator/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ void RTL::setRtlTypeAndDestination()
369369
}
370370

371371
} else if (_param_rtl_type.get() == 6) {
372-
// estimate time to fly home using the same infrastructure as the battery failsafe
372+
// Set _rtl_direct with the home destination so calc_rtl_time_estimate() can check its reachability
373373
const float rtl_alt_home = computeReturnAltitude(destination);
374374
_rtl_direct.setRtlAlt(rtl_alt_home);
375375
_rtl_direct.setRtlPosition(destination, landing_loiter);

0 commit comments

Comments
 (0)