mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 05:50:36 +08:00
Actuator messages update. Fixes #11
This commit is contained in:
@@ -5,9 +5,12 @@
|
||||
|
||||
uint8 actuator_id
|
||||
|
||||
float16 position # Position feedback; same units as command
|
||||
float16 power
|
||||
float16 force # Sign depends on the direction of the force
|
||||
#
|
||||
# Whether the units are linear or angular depends on the actuator type (refer to the Command data type).
|
||||
#
|
||||
float16 position # meter or radian
|
||||
float16 force # Newton or Newton metre
|
||||
float16 speed # meter per second or radian per second
|
||||
|
||||
uint7 POWER_RATING_PCT_UNKNOWN = 127
|
||||
uint7 power_rating_pct # 0 - unloaded, 100 - full load/overload
|
||||
uint7 power_rating_pct # 0 - unloaded, 100 - full load
|
||||
|
||||
@@ -6,10 +6,15 @@
|
||||
uint8 actuator_id
|
||||
|
||||
#
|
||||
# Recommended units are, either:
|
||||
# - Unitless [-1; 1]
|
||||
# - Angular position in radians
|
||||
# - Linear position in meters
|
||||
# Status report should normally use the same units.
|
||||
# Whether the units are linear or angular depends on the actuator type.
|
||||
#
|
||||
float16 command
|
||||
uint4 COMMAND_TYPE_UNITLESS = 0 # [-1, 1]
|
||||
uint4 COMMAND_TYPE_POSITION = 1 # meter or radian
|
||||
uint4 COMMAND_TYPE_FORCE = 2 # Newton or Newton metre
|
||||
uint4 COMMAND_TYPE_SPEED = 3 # meter per second or radian per second
|
||||
uint4 command_type
|
||||
|
||||
#
|
||||
# Value of the above type
|
||||
#
|
||||
float16 command_value
|
||||
|
||||
Reference in New Issue
Block a user