PX4 Firmware
PX4 Autopilot Software http://px4.io
|
RSSI dBm to percentage conversion for Spektrum telemetry receivers. More...
#include <climits>
Go to the source code of this file.
Macros | |
#define | MASK(n) (n >> (sizeof(n) * CHAR_BIT - 1)) |
Functions | |
constexpr unsigned | c_abs (int n) |
constexpr int8_t | spek_dbm_to_percent (int8_t dbm) |
Variables | |
constexpr int8_t | lu_dbm_percent [] |
RSSI dBm to percentage conversion for Spektrum telemetry receivers.
Definition in file spektrum_rssi.h.
#define MASK | ( | n | ) | (n >> (sizeof(n) * CHAR_BIT - 1)) |
Definition at line 70 of file spektrum_rssi.h.
Referenced by c_abs().
constexpr unsigned c_abs | ( | int | n | ) |
Definition at line 73 of file spektrum_rssi.h.
References MASK.
Referenced by spek_dbm_to_percent().
constexpr int8_t spek_dbm_to_percent | ( | int8_t | dbm | ) |
Definition at line 79 of file spektrum_rssi.h.
References c_abs(), and lu_dbm_percent.
Referenced by dsm_decode().
constexpr int8_t lu_dbm_percent[] |
Definition at line 58 of file spektrum_rssi.h.
Referenced by spek_dbm_to_percent().