mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 00:20:34 +08:00
Mission: set gimbal to neutral on inactivation
It is generally preferred to have the camera pointing forward on pause, e.g. to use the camera for Navigation. Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -189,6 +189,7 @@ MissionBase::on_inactivation()
|
|||||||
_navigator->disable_camera_trigger();
|
_navigator->disable_camera_trigger();
|
||||||
|
|
||||||
_navigator->stop_capturing_images();
|
_navigator->stop_capturing_images();
|
||||||
|
_navigator->set_gimbal_neutral(); // point forward
|
||||||
_navigator->release_gimbal_control();
|
_navigator->release_gimbal_control();
|
||||||
|
|
||||||
if (_navigator->get_precland()->is_activated()) {
|
if (_navigator->get_precland()->is_activated()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user