mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 14:53:35 +08:00
navigator: stop capturing images on mission exit
When a mission starts capturing images using the MAV_CMD_IMAGE_START_CAPTURE command, it should also stop it again, in case it is stopped early, e.g. with RTL.
This commit is contained in:
@@ -173,6 +173,7 @@ Mission::on_inactivation()
|
||||
cmd.param3 = 1.0f;
|
||||
_navigator->publish_vehicle_cmd(&cmd);
|
||||
|
||||
_navigator->stop_capturing_images();
|
||||
_navigator->release_gimbal_control();
|
||||
|
||||
if (_navigator->get_precland()->is_activated()) {
|
||||
|
||||
Reference in New Issue
Block a user