Skip to content
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

Add magnetic declination info #4336

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

haslinghuis
Copy link
Member

@haslinghuis haslinghuis commented Feb 7, 2025

This pull request focuses on enhancing the GPS tab functionality and improving the user interface for magnetic declination settings. The key changes include the addition of magnetic declination data handling, refactoring the GPS data update logic, and updating the localization messages.

Enhancements to GPS tab functionality:

  • src/js/tabs/gps.js: Refactored the gps.initialize function to include magnetic declination data handling. This involves checking for the presence of a magnetometer sensor and updating the UI accordingly. [1] [2] [3] [4] [5]

User interface improvements:

  • src/tabs/gps.html: Added a new row in the GPS information table to display magnetic declination data.

Localization updates:

@haslinghuis haslinghuis added this to the 11.0 milestone Feb 7, 2025
@haslinghuis haslinghuis self-assigned this Feb 7, 2025
Copy link

netlify bot commented Feb 7, 2025

Deploy Preview for origin-betaflight-app ready!

Name Link
🔨 Latest commit 0528ed5
🔍 Latest deploy log https://app.netlify.com/sites/origin-betaflight-app/deploys/67a62ef1e40a5600097b2103
😎 Deploy Preview https://deploy-preview-4336.dev.app.betaflight.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@nerdCopter nerdCopter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • approving, tested virtual-mode only.

Copy link

sonarqubecloud bot commented Feb 7, 2025

Copy link
Member

@VitroidFPV VitroidFPV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't have hardware to test against a real setup, good otherwise

@haslinghuis haslinghuis merged commit 20fbd87 into betaflight:master Feb 11, 2025
9 checks passed
@haslinghuis haslinghuis deleted the gps-mag-declination branch February 11, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

Add current declination to GPS tab
3 participants