mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-03-24 10:34:00 +08:00
When we use a gimbal connected via "RC", so PWM via the Aux channels, we need to set the gimbal_device_id to 1 as per the protocol. This was missing for GIMBAL_DEVICE_ATTITUDE_STATUS, so I added that, and fixed the name of that variable while at it.
24 lines
508 B
Plaintext
24 lines
508 B
Plaintext
uint64 timestamp # time since system start (microseconds)
|
|
|
|
uint8 target_system
|
|
uint8 target_component
|
|
uint16 device_flags
|
|
|
|
uint16 DEVICE_FLAGS_RETRACT = 1
|
|
uint16 DEVICE_FLAGS_NEUTRAL = 2
|
|
uint16 DEVICE_FLAGS_ROLL_LOCK = 4
|
|
uint16 DEVICE_FLAGS_PITCH_LOCK = 8
|
|
uint16 DEVICE_FLAGS_YAW_LOCK = 16
|
|
|
|
float32[4] q
|
|
float32 angular_velocity_x
|
|
float32 angular_velocity_y
|
|
float32 angular_velocity_z
|
|
|
|
uint32 failure_flags
|
|
float32 delta_yaw
|
|
float32 delta_yaw_velocity
|
|
uint8 gimbal_device_id
|
|
|
|
bool received_from_mavlink
|