mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 05:47:35 +08:00
Reorganized actuator control messages
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
#
|
||||
# Actuator commands.
|
||||
# The system supports up to 256 actuators; up to 32 of them can be commanded with one message.
|
||||
# The system supports up to 256 actuators; up to 31 of them can be commanded with one message.
|
||||
#
|
||||
|
||||
uavcan.FigureOfMerit figure_of_merit
|
||||
|
||||
uint8[<=32] actuator_id # Can be empty, in which case ID is defined by the command index
|
||||
|
||||
float16[<=32] command # For a servo use [-1; 1]
|
||||
Command[<32] commands
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
#
|
||||
# Generic actuator feedback, if available.
|
||||
# Unknown components should be NAN.
|
||||
#
|
||||
|
||||
uint8 actuator_id
|
||||
|
||||
float16 position
|
||||
float16 position # Position feedback; same units as command
|
||||
float16 power # Watt
|
||||
float16 force # Newton (sign depends on the direction of the force)
|
||||
|
||||
float16 power # Watt; negative if unknown
|
||||
|
||||
uint7 POWER_RATE_PCT_UNKNOWN = 127
|
||||
uint7 power_rate_pct
|
||||
uint7 POWER_RATING_PCT_UNKNOWN = 127
|
||||
uint7 power_rating_pct # 0 - unloaded, 100 - full load/overload
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# Nested type.
|
||||
# Single actuator command.
|
||||
#
|
||||
|
||||
uint8 actuator_id
|
||||
float16 command # Any units. For a generic servo use [-1; 1].
|
||||
Reference in New Issue
Block a user