UNPKG

@betaflight/api

Version:

A high-level API to read data from betaflight flight controllers

53 lines (52 loc) 1.15 kB
export declare enum SerialPortIdentifiers { UART1 = 0, UART2 = 1, UART3 = 2, UART4 = 3, UART5 = 4, UART6 = 5, UART7 = 6, UART8 = 7, UART9 = 8, UART10 = 9, USB_VCP = 20, SOFTSERIAL1 = 30, SOFTSERIAL2 = 31 } export declare enum SerialPortFunctions { MSP = 0, GPS = 1, TELEMETRY_FRSKY = 2, TELEMETRY_HOTT = 3, TELEMETRY_MSP = 4, TELEMETRY_LTM = 5, TELEMETRY_SMARTPORT = 6, RX_SERIAL = 7, BLACKBOX = 8, TELEMETRY_MAVLINK = 9, ESC_SENSOR = 10, TBS_SMARTAUDIO = 11, TELEMETRY_IBUS = 12, IRC_TRAMP = 13, RUNCAM_DEVICE_CONTROL = 14, LIDAR_TF = 15, UNKNOWN = 16 } export declare type PortSettings = { id: SerialPortIdentifiers; functions: SerialPortFunctions[]; mspBaudRate: number; gpsBaudRate: number; telemetryBaudRate: number; blackboxBaudRate: number; }; export declare type LegacyBaudRates = { mspBaudRate: number; cliBaudRate: number; gpsBaudRate: number; gpsPassthroughBaudRate: number; }; export declare type SerialConfig = { ports: PortSettings[]; legacy?: LegacyBaudRates; };