Files
MicrOBU/app/src/test
Ashin Walpola 275d382a1d Parse the CiT One's real obu_gnss and processed CAM payloads
Both JSON parsers returned null for every real CiT One message, checked
against the logged runs:

- ObuGnssParser read everything from own_info, but obu_gnss keeps the
  position, speed, heading and acceleration under gnss (as its API document
  shows). So on the CiT One the ego state never came from obu_gnss, the own
  station ID was never learned from it, and the V2X logger wrote no OBU
  fixes. Kinematics now come from gnss and identity, yaw rate and vehicle
  size from own_info. The documented no-fix (91/181) and invalid-speed
  (163.82) markers are rejected.
- CamParser only took stationType as a number, but the CAM topic sends the
  name ("passengerCar"), so the processed CAM fallback was dead. Names are
  now mapped too, and the vehicle size is read from vehicleLength_m and
  vehicleWidth_m, the keys actually sent.

The name table moves from DenmEvent into StationType.fromApiName so the
DENM and CAM parsers share one copy. The tests use payloads with the keys,
nesting and types of the logged ones.
2026-11-18 14:56:26 +01:00
..