Hi @amarburg,
Indeed. This approach would be more effective if you added a “stop” button that sends a MANUAL_CONTROL message with all the buttons un-pressed.
That said, MAVLink is not confined to joystick-related messages (in fact, we’re largely trying to move away from dependence on the autopilot interpreting button inputs), and there are almost certainly better ways of achieving what you’re after ![]()
I’d recommend following these instructions for lights control setup.
If your camera tilt servo has its output assigned to the MountTilt function, camera tilt control should be possible in a similar way using MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW messages, though it may also be required to specify the mode (like we do in BlueOS).
EDIT: We have confirmed that it works to use
MAV_CMD_DO_MOUNT_CONTROL, withparam1set to the angle you want (e.g. using a data-lake variable), andparam7set toRC_TARGETING (3)