mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 04:03:34 +08:00
Gimbal messages updated
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# Generic camera gimbal control.
|
||||
#
|
||||
|
||||
#
|
||||
# Target operation mode - how to handle this message.
|
||||
#
|
||||
Mode mode
|
||||
|
||||
#
|
||||
# This field is only used in the following modes:
|
||||
# - COMMAND_MODE_ANGULAR_VELOCITY
|
||||
# - COMMAND_MODE_ORIENTATION_FIXED_FRAME
|
||||
# - COMMAND_MODE_ORIENTATION_BODY_FRAME
|
||||
#
|
||||
# In the angular velocity mode, this field contains a rate quaternion.
|
||||
# In the orientation mode, this field contains orientation either in fixed frame or in body frame.
|
||||
#
|
||||
float16[4] quaternion_xyzw
|
||||
|
||||
#
|
||||
# These fields are only used in the following modes:
|
||||
# - COMMAND_MODE_GEO_POI
|
||||
#
|
||||
int32 longitude_deg_1e7 # 1 LSB = 1e-7 deg
|
||||
int32 latitude_deg_1e7
|
||||
int22 height_cm # 1 LSB = 10 mm
|
||||
|
||||
uint2 HEIGHT_REFERENCE_ELLIPSOID = 0
|
||||
uint2 HEIGHT_REFERENCE_MEAN_SEA_LEVEL = 1
|
||||
uint2 height_reference
|
||||
@@ -0,0 +1,12 @@
|
||||
#
|
||||
# Generic gimbal status.
|
||||
#
|
||||
|
||||
Mode mode
|
||||
|
||||
#
|
||||
# Camera axis orientation in body frame (not in fixed frame).
|
||||
# Please refer to the UAVCAN coordinate frame conventions.
|
||||
#
|
||||
float16[4] camera_orientation_in_body_frame_xyzw
|
||||
float16[<=9] camera_orientation_in_body_frame_covariance # +inf for non-existent axes
|
||||
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# Gimbal operating mode
|
||||
#
|
||||
|
||||
uint4 COMMAND_MODE_ANGULAR_VELOCITY = 0
|
||||
uint4 COMMAND_MODE_ORIENTATION_FIXED_FRAME = 1
|
||||
uint4 COMMAND_MODE_ORIENTATION_BODY_FRAME = 2
|
||||
uint4 COMMAND_MODE_GEO_POI = 3
|
||||
uint4 command_mode
|
||||
@@ -1,5 +0,0 @@
|
||||
#
|
||||
# Generic gimbal control.
|
||||
#
|
||||
|
||||
float16[3] angular_velocity # rad/s, camera frame
|
||||
@@ -1,11 +0,0 @@
|
||||
#
|
||||
# Generic gimbal control.
|
||||
#
|
||||
|
||||
int32 longitude_deg_1e7 # 1 LSB = 1e-7 deg
|
||||
int32 latitude_deg_1e7
|
||||
int22 height_cm # 1 LSB = 10 mm
|
||||
|
||||
uint2 HEIGHT_REFERENCE_ELLIPSOID = 0
|
||||
uint2 HEIGHT_REFERENCE_MEAN_SEA_LEVEL = 1
|
||||
uint2 height_reference
|
||||
@@ -1,9 +0,0 @@
|
||||
#
|
||||
# Generic gimbal control.
|
||||
#
|
||||
|
||||
float16[4] orientation_xyzw
|
||||
|
||||
uint2 REFERENCE_FRAME_FIXED = 0
|
||||
uint2 REFERENCE_FRAME_BODY = 1
|
||||
uint2 reference_frame
|
||||
@@ -1,15 +0,0 @@
|
||||
#
|
||||
# Generic gimbal status.
|
||||
#
|
||||
|
||||
uint4 MODE_ANGULAR_VELOCITY = 0
|
||||
uint4 MODE_ORIENTATION_FIXED_FRAME = 1
|
||||
uint4 MODE_ORIENTATION_BODY_FRAME = 2
|
||||
uint4 MODE_GEO_POI = 3
|
||||
uint4 mode
|
||||
|
||||
#
|
||||
# Camera axis orientation in body frame (not in fixed frame).
|
||||
#
|
||||
float16[4] body_frame_orientation_xyzw
|
||||
float16[<=9] body_frame_orientation_covariance # +inf for non-existent axes
|
||||
Reference in New Issue
Block a user