I am currently trying to control gimbal over ROS2 through AUX
on firmware 1.13.3
PX4 Firmware
Build firmware with micrortps & add uorb topics
### urtps_bridge_topics.yaml
...
- msg: mount_orientation
send: true
receive: true
id: 27
- msg: gimbal_device_attitude_status
send: true
id: 28
- msg: gimbal_device_information
send: true
id: 29
- msg: gimbal_device_set_attitude
receive: true
id: 30
- msg: gimbal_manager_information
send: true
id: 31
- msg: gimbal_manager_set_attitude
receive: true
id: 32
- msg: gimbal_manager_set_manual_control
receive: true
id: 33
- msg: gimbal_manager_status
send: true
id: 34
Got it micrortps_agent & micrortps_cilent running correctly.
PX4 6X param:
SYS_CTRL_ALLOC = 1
MNT_MODE_IN = Mavlink gimbal protocal v2
MNT_MODE_OUT = AUX
COM_PREARM_MODE=2 (For testing)
Set AUX 1-3 to Gimbal Roll, Yaw & Pitch.
Mavlink Console:
Got gimbal moving over console
gimbal status # ensure it is running
gimbal test pitch 45 yaw 45
Able to get status from /fmu/gimbal_device_set_attitude/in
timestamp: 1704841450199713
target_system: 0
target_component: 0
device_flags: 30
q:
- 1.0
- 0.0
- 0.0
- 0.0
angular_velocity_x: 0.0
angular_velocity_y: 0.0
angular_velocity_z: 0.0
failure_flags: 0
received_from_mavlink: false
However unable to control the gimbal over ROS2 & uorb
when publishing over /fmu/gimbal_manager_set_manual_control/in
Is there anyone got it running? Im looking at trying it with gimbal V1 command. Is there a set got it working controlling gimbal through AUX over microRTPS.