mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
CMS Telemetry over CRSF w/ Lua Script (X9D, so far)
This commit is contained in:
parent
b2c247d34a
commit
9d4d3ad45c
17 changed files with 393 additions and 5 deletions
|
@ -31,9 +31,18 @@ typedef enum {
|
|||
// MSP commands
|
||||
CRSF_FRAMETYPE_MSP_REQ = 0x7A, // response request using msp sequence as command
|
||||
CRSF_FRAMETYPE_MSP_RESP = 0x7B, // reply with 58 byte chunked binary
|
||||
CRSF_FRAMETYPE_MSP_WRITE = 0x7C // write with 8 byte chunked binary (OpenTX outbound telemetry buffer limit)
|
||||
CRSF_FRAMETYPE_MSP_WRITE = 0x7C, // write with 8 byte chunked binary (OpenTX outbound telemetry buffer limit)
|
||||
CRSF_FRAMETYPE_DISPLAYPORT_UPDATE = 0x7D, // transmit displayport buffer to remote
|
||||
CRSF_FRAMETYPE_DISPLAYPORT_CLEAR = 0x7E, // clear remote
|
||||
CRSF_FRAMETYPE_DISPLAYPORT_CMD = 0x7F, // client request
|
||||
} crsfFrameType_e;
|
||||
|
||||
enum {
|
||||
CRSF_DISPLAYPORT_SUBCMD_OPEN = 0x01, // client request to open cms menu
|
||||
CRSF_DISPLAYPORT_SUBCMD_CLOSE = 0x02, // client request to close cms menu
|
||||
CRSF_DISPLAYPORT_SUBCMD_POLL = 0x03, // client request to poll/refresh cms menu
|
||||
};
|
||||
|
||||
enum {
|
||||
CRSF_FRAME_GPS_PAYLOAD_SIZE = 15,
|
||||
CRSF_FRAME_BATTERY_SENSOR_PAYLOAD_SIZE = 8,
|
||||
|
|
|
@ -928,6 +928,12 @@ const clivalue_t valueTable[] = {
|
|||
{ "displayport_msp_row_adjust", VAR_INT8 | MASTER_VALUE, .config.minmax = { -3, 0 }, PG_DISPLAY_PORT_MSP_CONFIG, offsetof(displayPortProfile_t, rowAdjust) },
|
||||
#endif
|
||||
|
||||
// PG_DISPLAY_PORT_CRSF_CONFIG
|
||||
#if defined(USE_CRSF_CMS_TELEMETRY)
|
||||
{ "displayport_crsf_col_adjust", VAR_INT8 | MASTER_VALUE, .config.minmax = { -8, 0 }, PG_DISPLAY_PORT_CRSF_CONFIG, offsetof(displayPortProfile_t, colAdjust) },
|
||||
{ "displayport_crsf_row_adjust", VAR_INT8 | MASTER_VALUE, .config.minmax = { -3, 0 }, PG_DISPLAY_PORT_CRSF_CONFIG, offsetof(displayPortProfile_t, rowAdjust) },
|
||||
#endif
|
||||
|
||||
// PG_DISPLAY_PORT_MSP_CONFIG
|
||||
#ifdef USE_MAX7456
|
||||
{ "displayport_max7456_col_adjust", VAR_INT8| MASTER_VALUE, .config.minmax = { -6, 0 }, PG_DISPLAY_PORT_MAX7456_CONFIG, offsetof(displayPortProfile_t, colAdjust) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue