-
-
Notifications
You must be signed in to change notification settings - Fork 999
Added MAVLink serial RX provider settings #4643
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
base: master
Are you sure you want to change the base?
Conversation
WalkthroughAdds MAVLINK as a recognized RX protocol across UI and core logic: build option constant, supported/available serial RX types, telemetry enablement conditions, firmware flasher telemetry UI behavior, and a DEBUG mode string. No other control flow or public API changes. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant Flasher UI
participant Features
participant FC
User->>Flasher UI: Select RX protocol = MAVLINK
Flasher UI->>Features: Evaluate telemetry rules (API >= 1.46)
Note over Features: MAVLINK included in telemetry-enabling protocols
Features-->>Flasher UI: Telemetry implied (disable manual selection)
Flasher UI-->>User: Telemetry option auto-set/disabled
sequenceDiagram
autonumber
participant App
participant FC
App->>FC: getSerialRxTypes()
alt API >= 1.46
FC-->>App: [..., "MAVLINK"]
else
FC-->>App: [...]
end
App->>FC: getSupportedSerialRxTypes(buildOptions)
alt buildOptions includes USE_SERIALRX_MAVLINK
FC-->>App: supported + "MAVLINK"
else
FC-->>App: supported (unchanged)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
src/js/Features.js
(1 hunks)src/js/debug.js
(1 hunks)src/js/fc.js
(3 hunks)src/js/tabs/firmware_flasher.js
(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (3)
src/js/fc.js (2)
src/js/serial_backend.js (1)
options
(546-546)src/js/tabs/receiver.js (1)
supportedRxTypes
(254-254)
src/js/Features.js (1)
src/js/data_storage.js (2)
API_VERSION_1_46
(4-4)API_VERSION_1_46
(4-4)
src/js/debug.js (1)
src/js/utils/array.js (2)
addArrayElement
(65-69)replaceArrayElement
(78-83)
🔇 Additional comments (6)
src/js/debug.js (1)
858-858
: LGTM!Minor whitespace improvement that enhances code readability.
src/js/Features.js (1)
64-74
: LGTM!The TELEMETRY enablement logic correctly includes MAVLINK alongside existing protocols (CRSF, GHST, FPORT, JETI). The implementation is consistent with the established pattern and properly gated by API version checks.
src/js/tabs/firmware_flasher.js (1)
294-294
: LGTM!MAVLINK is correctly added to the list of radio protocols with built-in telemetry support. This ensures the UI properly disables telemetry protocol selection when MAVLINK is selected, consistent with other protocols like CRSF and GHST.
src/js/fc.js (3)
87-87
: LGTM!The USE_SERIALRX_MAVLINK constant is properly defined with sequential value 4109, following the established pattern for serial RX protocol build options.
807-807
: LGTM!MAVLINK is correctly added to the serial RX types list for API version 1.46+, following the same pattern as other RX type additions in this block.
856-858
: LGTM!The build option check for MAVLINK support is correctly implemented, following the established pattern for other serial RX protocols. The logic properly adds MAVLINK to supported types when the USE_SERIALRX_MAVLINK build option is present.
Co-authored-by: Mark Haslinghuis <[email protected]>
@haslinghuis |
Only BT for now |
Co-authored-by: Mark Haslinghuis <[email protected]>
|
Preview URL: https://pr4643.betaflight-app.pages.dev |
What is interested. I will add mavlink debug in BBExplorer for the curent versions compatibility |
|
@demvlad when merged you can use this define - betaflight/betaflight#14693 |
The additions for MAVLink serial RX provider PR
Summary by CodeRabbit