Files
traccar/src
Chris Tucker 890d0f9ab5 Xexun2 Protocol Correction (#5818)
* Fix Xexun2 negative longitude (DDMM.MMMM truncate toward zero)

* Add test for Xexun2 negative longitude (DDMM.MMMM) conversion

- Add testConvertCoordinateNegativeLongitude() asserting correct conversion
  for negative longitude (-121.64531°), reference latitude (37.09772°),
  and positive longitude (121.64531°).
- Make convertCoordinate() package-private so the test can call it.

Made-with: Cursor

* Fix Xexun2 HEX test: correct lon/lat float bytes and checksum

- Use IEEE 754 big-endian bytes for -12138.7186 (lon) and 3705.8632 (lat)
- Assert only lat/lon/valid (no fix time) for decoder timestamp independence
- Recompute payload checksum for PR #5818

Made-with: Cursor

* Use position() helper for Xexun2 negative-longitude test; match decoded fix time

Made-with: Cursor
2026-03-14 07:47:41 -07:00
..
2026-03-14 07:47:41 -07:00