-
-
Notifications
You must be signed in to change notification settings - Fork 991
Fix backwards compatibility for sensor info #4464
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
Fix backwards compatibility for sensor info #4464
Conversation
WalkthroughThe changes update the logic for displaying sensor information in the setup tab. The request for sensor data is now unconditional, except for the optical flow sensor, which is only included for API versions 1.47 and above. The sensor info box is shown only for API versions 1.46 and higher; otherwise, it is hidden using a new Changes
Sequence Diagram(s)sequenceDiagram
participant UI as Setup Tab UI
participant API as API Layer
UI->>API: Request sensor info (gyro, accel, baro, mag, sonar)
alt API version >= 1.47
UI->>API: Request opticalflow sensor info
end
API-->>UI: Return sensor info
alt API version >= 1.46
UI->>UI: showSensorInfo()
else API version < 1.46
UI->>UI: hideSensorInfo()
end
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🔇 Additional comments (4)
✨ Finishing Touches
🪧 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
|
|
Preview URL: https://b56ddc67.betaflight-configurator.pages.dev |
Summary by CodeRabbit