ArduPilot/ardupilot

Rover: boats entering SmartRTL should loiter during path cleanup and during failure

Open

#11,285 opened on May 7, 2019

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C++ (9,336 stars) (15,603 forks)batch import
EnhancementRovergood first issue

Description

There are two places in mode_smart_rtl.cpp where stop_vehicle() is called (see here).

This is fine for Rovers but for boats they should ideally Loiter (i.e. hold position) if they can during the SmartRTL_WaitForPathCleanup and SmartRTL_Failure stages.

Guided mode's behaviour when _guided_mode == Guided_WP can be used as a reference on how this can be done.

Contributor guide