Adds missing vario tlm sensor and a generic tlm response (#977)
commit794898560b50db271357c3b41a861485df5f6412
authorJohannes <schugabe@gmx.at>
Sat, 23 Oct 2021 18:40:45 +0000 (23 20:40 +0200)
committerGitHub <noreply@github.com>
Sat, 23 Oct 2021 18:40:45 +0000 (23 20:40 +0200)
tree9fe08f7eef0997fb20d0aef0ead67f5c40ca8fa9
parent45d415f66b082678bf71344bc86bc49899d48349
Adds missing vario tlm sensor and a generic tlm response (#977)

This PR resolves mutliple telemetry issues:

iNav uses a vario tlm sensor that only has a 2 byte payload #800
CRSF defines custom frame types for different FCs #827 and #650 . Until now only MSP was supported but this PR adds 2x a 64 byte buffer for a general tlm response from other firmware projects. That buffer is used for all frame types that are not explicitly added to the telemetry sensor list. If the first slot is used there is a second slot that can be used (crsf device info, crsf parameter get, ...)

The TX module now sends all extended frames that are a broadcast or addressed at the FC or RX via the MspSender to the RX and are forwarded accordingly: This adds support for the KISS lua script and also shows other devices that respond to the PING command in lua script. Get/set parameters crsf commands are also a extended crsf frame and are also working with this PR.
src/lib/CRSF/CRSF.cpp
src/lib/CrsfProtocol/crsf_protocol.h
src/lib/Telemetry/telemetry.cpp
src/lib/Telemetry/telemetry.h
src/lib/TelemetryProtocol/telemetry_protocol.h
src/src/rx_main.cpp
src/test/telemetry_native/test_telemetry.cpp