Skip to content

Commit

Permalink
Sub: use MNT1_NEUTRAL_* to center the mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Sep 18, 2024
1 parent c10ddeb commit 925f4f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ArduSub/joystick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ void Sub::handle_jsbutton_press(uint8_t _button, bool shift, bool held)

case JSButton::button_function_t::k_mount_center:
#if HAL_MOUNT_ENABLED
camera_mount.set_angle_target(0, 0, 0, false);
camera_mount.set_mode(MAV_MOUNT_MODE_NEUTRAL);
camera_mount.update();
// for some reason the call to set_angle_targets changes the mode to mavlink targeting!
camera_mount.set_mode(MAV_MOUNT_MODE_RC_TARGETING);
#endif
Expand Down

0 comments on commit 925f4f8

Please sign in to comment.