Skip to content

EscStatus (UORB message)

TOPICS: esc_status

Fields

명칭형식Unit [Frame]Range/Enum설명
timestampuint64usTime since system start
counteruint16Incremented by the writing thread everytime new data is stored
esc_countuint8Number of connected ESCs
esc_connectiontypeuint8ESC_CONNECTION_TYPEHow ESCs connected to the system
esc_online_flagsuint16Bitmask indicating which ESC is online/offline (in motor order)
esc_armed_flagsuint16Bitmask indicating which ESC is armed (in motor order)
escEscReport[12]

Enums

ESC_CONNECTION_TYPE

명칭형식Value설명
ESC_CONNECTION_TYPE_PPMuint80Traditional PPM ESC
ESC_CONNECTION_TYPE_SERIALuint81Serial Bus connected ESC
ESC_CONNECTION_TYPE_ONESHOTuint82One Shot PPM
ESC_CONNECTION_TYPE_I2Cuint83I2C
ESC_CONNECTION_TYPE_CANuint84CAN-Bus
ESC_CONNECTION_TYPE_DSHOTuint85DShot

Constants

명칭형식Value설명
CONNECTED_ESC_MAXuint812The number of ESCs supported (Motor1-Motor12)

Source Message

Source file (GitHub)

Details

Click here to see original file

c
uint64 timestamp # [us] Time since system start
uint8 CONNECTED_ESC_MAX = 12 # The number of ESCs supported (Motor1-Motor12)

uint8 ESC_CONNECTION_TYPE_PPM = 0 # Traditional PPM ESC
uint8 ESC_CONNECTION_TYPE_SERIAL = 1 # Serial Bus connected ESC
uint8 ESC_CONNECTION_TYPE_ONESHOT = 2 # One Shot PPM
uint8 ESC_CONNECTION_TYPE_I2C = 3 # I2C
uint8 ESC_CONNECTION_TYPE_CAN = 4 # CAN-Bus
uint8 ESC_CONNECTION_TYPE_DSHOT = 5 # DShot

uint16 counter # [-] Incremented by the writing thread everytime new data is stored

uint8 esc_count # [-] Number of connected ESCs
uint8 esc_connectiontype # [@enum ESC_CONNECTION_TYPE] How ESCs connected to the system

uint16 esc_online_flags               # Bitmask indicating which ESC is online/offline (in motor order)
# esc_online_flags bit 0 : Set to 1 if Motor1 is online
# esc_online_flags bit 1 : Set to 1 if Motor2 is online
# esc_online_flags bit 2 : Set to 1 if Motor3 is online
# esc_online_flags bit 3 : Set to 1 if Motor4 is online
# esc_online_flags bit 4 : Set to 1 if Motor5 is online
# esc_online_flags bit 5 : Set to 1 if Motor6 is online
# esc_online_flags bit 6 : Set to 1 if Motor7 is online
# esc_online_flags bit 7 : Set to 1 if Motor8 is online
# esc_online_flags bit 8 : Set to 1 if Motor9 is online
# esc_online_flags bit 9 : Set to 1 if Motor10 is online
# esc_online_flags bit 10: Set to 1 if Motor11 is online
# esc_online_flags bit 11: Set to 1 if Motor12 is online

uint16 esc_armed_flags # [-] Bitmask indicating which ESC is armed (in motor order)

EscReport[12] esc