-
-
Notifications
You must be signed in to change notification settings - Fork 156
rename DUAL_GYRO to MULTI_GYRO (debug mode) #846
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
rename DUAL_GYRO to MULTI_GYRO (debug mode) #846
Conversation
WalkthroughThe changes introduce support for new "multi-gyro" debug modes, replacing and aliasing previous "dual-gyro" modes in various parts of the codebase. This includes conditional renaming of debug mode entries, friendly name mappings, value conversion logic, and parser translation aliases, all targeting compatibility with firmware versions 4.6.0 and above. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant FlightLogFieldDefs
participant FlightLogFieldPresenter
participant FlightLogParser
User->>FlightLogFieldDefs: Request field definitions (fw >= 4.6.0)
FlightLogFieldDefs->>FlightLogFieldDefs: Rename DUAL_GYRO_* to MULTI_GYRO_*
User->>FlightLogFieldPresenter: Request friendly name or value conversion for MULTI_GYRO_* debug field
FlightLogFieldPresenter->>FlightLogFieldPresenter: Map to friendly name and convert value (deg/s)
User->>FlightLogParser: Parse log with MULTI_GYRO_* fields
FlightLogParser->>FlightLogParser: Translate MULTI_GYRO_* to DUAL_GYRO_* aliases
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Instead of adding - we should rename it for firmware 4.6 |
i'll investigate, i do want backward compat. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
what do you see that i do not see? i did not want to force-push, so it's a commit over 9b40 |
Please move all changes here: https://github.com/betaflight/blackbox-log-viewer/pull/846/files#diff-1c35af2d073b48014296ed8da03ed89c112f28d05456355d2bf04f3fb3e92ce4R535-R552 Perhaps take the configurator PR as reference. |
Add version-gated DUAL_GYRO to MULTI_GYRO debug mode renaming with display names supporting up to 4 gyros. Debug modes show proper axis labels like 'Gyro 1 Diff [roll]' and maintain backward compatibility with existing DUAL_GYRO modes.
f98c2ee
to
c24cdce
Compare
|
Preview URL: https://c24cdce1.betaflight-blackbox.pages.dev |
@blckmn , please set to 2 approvals required so that coderabbitAI is not the only approval |
AI generated to support #14533 with backward compatibility.
Summary of Changes Committed:
Added version-gated DUAL_GYRO to MULTI_GYRO renaming for firmware 4.6.0+ in flightlog_fielddefs.js
Added MULTI_GYRO debug field display names in flightlog_fields_presenter.js supporting up to 4 gyros
Added MULTI_GYRO debug mode aliases in flightlog_parser.js for backward compatibility
Updated case statements to handle the new MULTI_GYRO debug modes
Summary by CodeRabbit
New Features
Bug Fixes