Update MAVLink to CRSF (#2868)
commit55d6d3f13b5ab5b5203b6478ac275e6d9b36243a
authorMUSTARDTIGER FPV <122312693+MUSTARDTIGERFPV@users.noreply.github.com>
Thu, 1 Aug 2024 19:55:31 +0000 (1 12:55 -0700)
committerGitHub <noreply@github.com>
Thu, 1 Aug 2024 19:55:31 +0000 (2 07:55 +1200)
treec9152390280a94cc2464a5086690a69005a99a33
parentef41bf5b0586e0c754fc380873e069432b0c77c8
Update MAVLink to CRSF (#2868)

* Update MAVLink to CRSF

* Ignore batteries past ID 0
* Altitude should be a uint16_t during intermediate representation
* VSpd is positive-down for some reason
* Pitch seems to be positive-down as well
* Make flight mode suffixing a little more flexible

* Change CRSF pitch - wrong for INAV & Betaflight but right for Ardu

* strlen -> strnlen
src/lib/MAVLink/MAVLink.cpp