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.
This commit is contained in:
@@ -32,6 +32,13 @@ With the CAM pinger on and a listener that decodes yawRate:
|
||||
left-positive (316 of 316 turning samples), its `obu_gnss` `yawRate_degps` right-positive
|
||||
despite the API document (27 of 27, bacospat ride of 2026-03-18). Only 27 samples from one
|
||||
ride: re-check on the next CiT One ride with turns.
|
||||
- [ ] CiT One JSON parsers (fixed 2026-11-18): `ObuGnssParser` returned null for every real `obu_gnss`
|
||||
message (position is under `gnss`, it read `own_info`), and `CamParser` for every real CAM-topic
|
||||
message (`stationType` is a name). So on the CiT One the ego state never came from `obu_gnss`,
|
||||
the app's V2X logger wrote no OBU fixes, and the processed CAM fallback was dead. On the next
|
||||
CiT One session: the use-case engine runs on `obu_gnss` (the phone GNSS fallback only kicks in
|
||||
after 2.5 s without it), the own station ID is learned so own CAMs stop showing as remote, and
|
||||
the V2X log has `obu` rows in its `gnss` table.
|
||||
|
||||
### obu-firmware on Niklas Dathe's microbu-firmware (added 2026-11-10, bench run 2026-11-11)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user