-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update SmartPort telemetry to reflect latest flight modes #11104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SmartPort telemetry to reflect latest flight modes #11104
Conversation
This brings the SmartPort flight modes in line with what is shown on the OSD and CRSF telemetry. I am working on updating the OpenTX Telemetry Widget. All have been tested, except Turtle, using SmartPort. I just need to test with CRSF.
PR Compliance Guide 🔍(Compliance updated until commit cc33f44)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit c520ff8
|
||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
|
Refactor the fragile flight mode encoding Prevent ambiguous flight mode values |
|
|
User description
This brings the SmartPort flight modes in line with what is shown on the OSD and CRSF telemetry.
I am working on updating the OpenTX Telemetry Widget. All new modes have been tested, except Turtle, using SmartPort. I just need to test with CRSF and create the voice files. iNavFlight/OpenTX-Telemetry-Widget#193
I've also added a small correction to the OSD display of the
GEOmode.PR Type
Enhancement, Bug fix
Description
Expand SmartPort telemetry flight mode support to 32-bit range
Add new flight modes: Turtle, FW Autoland, Angle Hold, Waypoint RTH
Refine existing mode conditions with airplane state checks
Fix GEO mode display padding in OSD
Diagram Walkthrough
File Walkthrough
smartport.c
Expand SmartPort flight mode detection to 32-bitsrc/main/telemetry/smartport.c
frskyGetFlightMode()return type fromuint16_ttouint32_ttosupport expanded flight mode range
(100000), TURTLE_MODE (200000), NAV_SEND_TO (400000), and
airplane-specific NAV_POSHOLD_MODE (800000)
ANGLEHOLD_MODE (2000000)
NAV_RTH_MODE to exclude waypoint missions
osd.c
Fix GEO mode display paddingsrc/main/io/osd.c
alignment with other 4-character mode labels