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

Change from NaN to NULL for heading in location claim #469

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

laurencelundblade
Copy link
Collaborator

This changes the heading value from NaN to NULL to represent the heading when stationary.

This aligns with a change in the W3C specification.

Also, JSON can't represent a NaN and the convention in JSON is to use NULL.

(NaN is IEEE 754 representation of "not a number" typically used to represent divide by 0 in local calculations).

This is somewhat of a protocol change, but

  • The protocol was unimplementable in JSON
  • Backwards compatibility in CBOR is easy to provide by checking for both NaN and NULL

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.

1 participant