cr / hx870

Python tools for the Standard Horizon HX870
GNU General Public License v3.0
21 stars 5 forks source link

Elevation treated as unsigned #31

Closed johannessen closed 4 years ago

johannessen commented 4 years ago

29 introduces a new issue with dumping elevation data to GPX:

  <trkpt lat="…" lon="…">
    <ele>0</ele>
    <time>2019-10-23T12:10:05Z</time>
  </trkpt>
  <trkpt lat="…" lon="…">
    <ele>65535</ele>
    <time>2019-10-23T12:10:10Z</time>
  </trkpt>

Looks like the elevation field is interpreted as unsigned when read from the device.