Skip to content

Commit

Permalink
add RSSI_DBM
Browse files Browse the repository at this point in the history
  • Loading branch information
olliw42 committed Oct 10, 2024
1 parent e972618 commit ba85df7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dronecan/sensors/rc/1140.RCInput.uavcan
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
# RSSI >= -50 dB: 255
# RSSI > -120 dB and RSSI < -50 dBm: 254 / 70 * (RSSI + 120) but not smaller than 1
# RSSI <= -120 dB: 1
# - STATUS_QUALITY_LQ: The quality field is valid and represents LQ in percent, 0 is no signal, 100 is 100% link quality.
# - STATUS_QUALITY_LQ: The quality field is valid and represents LQ in percent, 0 is no signal, 100 is 100% link quality
# - STATUS_QUALITY_RSSI_DBM: The quality field is valid and represents RSSI in inverted dBm, 0 is no signal, 1 = -1 dBm, 255 = -255 dBm
# - STATUS_QUALITY_SNR: The quality field is valid and represents SNR in device dependent units, value is shifted by 128 to allow
# representing positive and negative values: 128 = 0, 255 = +127, 1 = -127, 0 is no signal.
# representing positive and negative values: 128 = 0, 255 = +127, 1 = -127, 0 is no signal
# Only one of these flags can be set at any time.

uint8 STATUS_QUALITY_VALID = 1 # quality field is valid and represents RSSI in scaled uints, 0 is no signal, 255 is "full" signal
uint8 STATUS_FAILSAFE = 2 # receiver has lost contact with transmitter
uint8 STATUS_QUALITY_LQ = 4 # quality field is valid and represents LQ in percent, 0 is no signal, 100 is 100% link quality
uint8 STATUS_QUALITY_SNR = 8 # quality field is valid and represents SNR in device dependent units, shifted by 128
uint8 STATUS_QUALITY_RSSI_DBM = 8 # rssi in inverted dBm, 0 is no signal, 1 = -1 dBm, 255 = -255 dBm
uint8 STATUS_QUALITY_SNR = 16 # quality field is valid and represents SNR in device dependent units, shifted by 128

uint16 status # bitmask of status bits, enumerated above with STATUS_*

Expand Down

0 comments on commit ba85df7

Please sign in to comment.