|
|
|
@ -183,7 +183,7 @@ void Sub::handle_jsbutton_press(uint8_t _button, bool shift, bool held)
@@ -183,7 +183,7 @@ 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_targets(0, 0, 0); |
|
|
|
|
camera_mount.set_angle_target(0, 0, 0, false); |
|
|
|
|
// 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 |
|
|
|
|