I tried to launch a sitl with enabling gimbal ‘-M’ and connected to the vehivle using dronekit.
When accessing the values for gimbal using vehicle.gimbal, it returns None for pitch, roll and yaw.
Is the camera functionality available? Do I need to install any seperate package? How do I verify that SITL vehicle is launched with gimbal enabled?
This is too late reply. But, I leave my answer to help others.
ArduPilot reports the angles via MOUNT_STATUS MAVLink messages.
When you use Mission Planner, it is kind of easy.
Connect Mission Planner
Click HUD and then Ctrl + F
Click Mavlink Inspector
Find MOUNT_STATUS section
Then, you can confirm pitch, yaw, and roll angles of the gimbal.