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

Make RawX and RawY ints in MapLinkPayload #84

Merged
merged 1 commit into from
Apr 21, 2020
Merged

Make RawX and RawY ints in MapLinkPayload #84

merged 1 commit into from
Apr 21, 2020

Conversation

rreminy
Copy link
Contributor

@rreminy rreminy commented Apr 21, 2020

I found out RawX and RawY because:

  • The raw coordinates (0, 0) is roughly the middle flag coordinates (21.5, 21.5)
  • Going a bit to the left (or up) they jump to 4.2 billion (which makes it easy to tell its just the sign bit being set)

@goaaats goaaats merged commit 21da9d8 into goatcorp:master Apr 21, 2020
@ff-meli
Copy link
Contributor

ff-meli commented Apr 21, 2020

@rreminy Using ints for these breaks on some values, which is why it was intentionally done as uints (as the casts should make obvious).

Is there a case where this does not convert to correct values for you?

@goaaats goaaats linked an issue Apr 21, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong values on some MapLinks
3 participants