Skip to content

RcChannels (UORB message)

TOPICS: rc_channels

Fields

NameTypeUnit [Frame]Range/EnumDescription
timestampuint64time since system start (microseconds)
timestamp_last_validuint64Timestamp of last valid RC signal
channelsfloat32[18]Scaled to -1..1 (throttle: 0..1)
channel_countuint8Number of valid channels
functionint8[30]Functions mapping
rssiuint8Receive signal strength index
signal_lostboolControl signal lost, should be checked together with topic timeout
frame_drop_countuint32Number of dropped frames

Constants

NameTypeValueDescription
FUNCTION_THROTTLEuint80
FUNCTION_ROLLuint81
FUNCTION_PITCHuint82
FUNCTION_YAWuint83
FUNCTION_RETURNuint84
FUNCTION_LOITERuint85
FUNCTION_OFFBOARDuint86
FUNCTION_FLAPSuint87
FUNCTION_AUX_1uint88
FUNCTION_AUX_2uint89
FUNCTION_AUX_3uint810
FUNCTION_AUX_4uint811
FUNCTION_AUX_5uint812
FUNCTION_AUX_6uint813
FUNCTION_PARAM_1uint814
FUNCTION_PARAM_2uint815
FUNCTION_PARAM_3_5uint816
FUNCTION_KILLSWITCHuint817
FUNCTION_TRANSITIONuint818
FUNCTION_GEARuint819
FUNCTION_ARMSWITCHuint820
FUNCTION_FLTBTN_SLOT_1uint821
FUNCTION_FLTBTN_SLOT_2uint822
FUNCTION_FLTBTN_SLOT_3uint823
FUNCTION_FLTBTN_SLOT_4uint824
FUNCTION_FLTBTN_SLOT_5uint825
FUNCTION_FLTBTN_SLOT_6uint826
FUNCTION_ENGAGE_MAIN_MOTORuint827
FUNCTION_PAYLOAD_POWERuint828
FUNCTION_TERMINATIONuint829
FUNCTION_FLTBTN_SLOT_COUNTuint86

Source Message

Source file (GitHub)

Click here to see original file
c
uint64 timestamp						# time since system start (microseconds)

uint8 FUNCTION_THROTTLE      = 0
uint8 FUNCTION_ROLL          = 1
uint8 FUNCTION_PITCH         = 2
uint8 FUNCTION_YAW           = 3
uint8 FUNCTION_RETURN        = 4
uint8 FUNCTION_LOITER        = 5
uint8 FUNCTION_OFFBOARD      = 6
uint8 FUNCTION_FLAPS         = 7
uint8 FUNCTION_AUX_1         = 8
uint8 FUNCTION_AUX_2         = 9
uint8 FUNCTION_AUX_3         = 10
uint8 FUNCTION_AUX_4         = 11
uint8 FUNCTION_AUX_5         = 12
uint8 FUNCTION_AUX_6         = 13
uint8 FUNCTION_PARAM_1       = 14
uint8 FUNCTION_PARAM_2       = 15
uint8 FUNCTION_PARAM_3_5     = 16
uint8 FUNCTION_KILLSWITCH    = 17
uint8 FUNCTION_TRANSITION    = 18
uint8 FUNCTION_GEAR          = 19
uint8 FUNCTION_ARMSWITCH     = 20
uint8 FUNCTION_FLTBTN_SLOT_1 = 21
uint8 FUNCTION_FLTBTN_SLOT_2 = 22
uint8 FUNCTION_FLTBTN_SLOT_3 = 23
uint8 FUNCTION_FLTBTN_SLOT_4 = 24
uint8 FUNCTION_FLTBTN_SLOT_5 = 25
uint8 FUNCTION_FLTBTN_SLOT_6 = 26
uint8 FUNCTION_ENGAGE_MAIN_MOTOR = 27
uint8 FUNCTION_PAYLOAD_POWER = 28
uint8 FUNCTION_TERMINATION = 29

uint8 FUNCTION_FLTBTN_SLOT_COUNT = 6

uint64 timestamp_last_valid					# Timestamp of last valid RC signal
float32[18] channels						# Scaled to -1..1 (throttle: 0..1)
uint8 channel_count						# Number of valid channels
int8[30] function						# Functions mapping
uint8 rssi							# Receive signal strength index
bool signal_lost						# Control signal lost, should be checked together with topic timeout
uint32 frame_drop_count						# Number of dropped frames