Reorganized actuator control messages

This commit is contained in:
Pavel Kirienko
2014-08-19 21:56:34 +04:00
parent d816d58b30
commit 361454efa3
3 changed files with 15 additions and 9 deletions
@@ -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].