add telemetry messages: rx link quality, battery percentage, flight mode, relative altitude
This commit is contained in:
@@ -28,6 +28,22 @@ abstract final class MspCommands {
|
||||
/// (`fc_msp.c`, `case MSP2_INAV_STATUS`; ID aus
|
||||
/// `msp_protocol_v2_inav.h`: `#define MSP2_INAV_STATUS 0x2000`)
|
||||
static const int inavStatus = 0x2000;
|
||||
|
||||
/// Response (24 Byte): u8 flags, u16 batteryVoltage(0.01V),
|
||||
/// u16 amperage(0.01A), u32 power, u32 mAhDrawn, u32 mWhDrawn,
|
||||
/// u32 remainingCapacity, u8 batteryPercentage(0-100, bereits fertig
|
||||
/// berechnet ueber `calculateBatteryPercentage()`), u16 legacyRssi
|
||||
/// (0-1023, veraltete Skala - siehe stattdessen [inavLinkStats]).
|
||||
/// (`fc_msp.c`, `case MSP2_INAV_ANALOG`; ID aus
|
||||
/// `msp_protocol_v2_inav.h`: `#define MSP2_INAV_ANALOG 0x2002`)
|
||||
static const int inavAnalog = 0x2002;
|
||||
|
||||
/// Response (3 Byte): u8 uplinkRssiDbm (negiert gespeichert als
|
||||
/// `-rxLinkStatistics.uplinkRSSI`), u8 uplinkLinkQuality (0-100%,
|
||||
/// `rxLinkStatistics.uplinkLQ` - das ist die "Receiver Link Quality"),
|
||||
/// i8 uplinkSnr. (`fc_msp.c`, `case MSP2_INAV_GET_LINK_STATS`; ID aus
|
||||
/// `msp_protocol_v2_inav.h`: `#define MSP2_INAV_GET_LINK_STATS 0x2103`)
|
||||
static const int inavLinkStats = 0x2103;
|
||||
}
|
||||
|
||||
/// Bits von `armingFlags` (Doku: `fc/runtime_config.h`, `armingFlags_e`).
|
||||
|
||||
Reference in New Issue
Block a user