APM:Libraries
|
Go to the source code of this file.
Classes | |
struct | sbus_bit_pick |
Macros | |
#define | SBUS_FRAME_SIZE 25 |
#define | SBUS_INPUT_CHANNELS 16 |
#define | SBUS_FLAGS_BYTE 23 |
#define | SBUS_FAILSAFE_BIT 3 |
#define | SBUS_FRAMELOST_BIT 2 |
#define | SBUS_RANGE_MIN 200.0f |
#define | SBUS_RANGE_MAX 1800.0f |
#define | SBUS_TARGET_MIN 1000.0f |
#define | SBUS_TARGET_MAX 2000.0f |
#define | SBUS_SCALE_FACTOR ((SBUS_TARGET_MAX - SBUS_TARGET_MIN) / (SBUS_RANGE_MAX - SBUS_RANGE_MIN)) |
#define | SBUS_SCALE_OFFSET (int)(SBUS_TARGET_MIN - (SBUS_SCALE_FACTOR * SBUS_RANGE_MIN + 0.5f)) |
Functions | |
bool | sbus_decode (const uint8_t frame[25], uint16_t *values, uint16_t *num_values, bool *sbus_failsafe, bool *sbus_frame_drop, uint16_t max_values) |
Variables | |
static const struct sbus_bit_pick | sbus_decoder [SBUS_INPUT_CHANNELS][3] |
#define SBUS_FAILSAFE_BIT 3 |
Definition at line 45 of file sbus.cpp.
Referenced by sbus_decode().
#define SBUS_FLAGS_BYTE 23 |
Definition at line 44 of file sbus.cpp.
Referenced by sbus_decode().
#define SBUS_FRAMELOST_BIT 2 |
Definition at line 46 of file sbus.cpp.
Referenced by sbus_decode().
#define SBUS_INPUT_CHANNELS 16 |
Definition at line 43 of file sbus.cpp.
Referenced by sbus_decode().
#define SBUS_SCALE_FACTOR ((SBUS_TARGET_MAX - SBUS_TARGET_MIN) / (SBUS_RANGE_MAX - SBUS_RANGE_MIN)) |
Definition at line 56 of file sbus.cpp.
Referenced by sbus_decode().
#define SBUS_SCALE_OFFSET (int)(SBUS_TARGET_MIN - (SBUS_SCALE_FACTOR * SBUS_RANGE_MIN + 0.5f)) |
Definition at line 57 of file sbus.cpp.
Referenced by sbus_decode().
bool sbus_decode | ( | const uint8_t | frame[25], |
uint16_t * | values, | ||
uint16_t * | num_values, | ||
bool * | sbus_failsafe, | ||
bool * | sbus_frame_drop, | ||
uint16_t | max_values | ||
) |
|
static |