Skip to content

Update latlon #4349

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

Merged
merged 3 commits into from
Feb 23, 2025
Merged

Update latlon #4349

merged 3 commits into from
Feb 23, 2025

Conversation

haslinghuis
Copy link
Member

This pull request includes changes to the GPS data handling and display, specifically separating the latitude and longitude into distinct fields. The changes are made across multiple files to ensure consistency in the codebase.

Changes to GPS data handling and display:

  • locales/en/messages.json: Separated the GPS latitude and longitude messages into individual fields.

  • src/js/fc.js: Updated the GPS_DATA object to use latitude and longitude instead of lat and lon.

  • src/js/msp/MSPHelper.js: Modified the process_data function to read latitude and longitude instead of lat and lon.

  • src/js/tabs/gps.js: Updated the initialize function to handle latitude and longitude separately, including changes to the UI updates and map centering logic. [1] [2] [3]

  • src/js/tabs/setup.js: Adjusted the initialize function to update the display and URL generation for latitude and longitude separately.

  • src/tabs/gps.html: Split the GPS position display into separate rows for latitude and longitude.

  • src/tabs/setup.html: Similarly, split the GPS position display into separate rows for latitude and longitude.

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

netlify bot commented Feb 18, 2025

Deploy Preview for origin-betaflight-app ready!

Name Link
🔨 Latest commit a2b294b
🔍 Latest deploy log https://app.netlify.com/sites/origin-betaflight-app/deploys/67b743f5b7fc46000846128e
😎 Deploy Preview https://deploy-preview-4349.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.

@nerdCopter
Copy link
Member

VirtualFC shows NaN
image

@nerdCopter
Copy link
Member

@Pancronos, please review.

@Pancronos
Copy link

Pancronos commented Feb 18, 2025

Tested fine both virtual and real. Thank you!! needs translation :)
this was really a mess (standard size on my monitor)
image

Comment on lines +2960 to +2966
"gpsLatitude": {
"message": "Latitude:",
"description": "Show GPS position - Latitude"
},
"gpsLongitude": {
"message": "Longitude:",
"description": "Show GPS position - Longitude"
Copy link
Member

Choose a reason for hiding this comment

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

The Current is not needed anymore? I think remember it was "included" some time ago to differentiate with the Home Latitude / Longitude.

Copy link
Member

Choose a reason for hiding this comment

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

It seems it was a not merged PR... #3486

@haslinghuis haslinghuis merged commit 6109779 into betaflight:master Feb 23, 2025
9 checks passed
@haslinghuis haslinghuis deleted the latlon branch February 23, 2025 20:56
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.

Separate GPS Latitude and Longitude
5 participants