Files
MicrOBU/app
Ashin Walpola 6fa91d1702 Send and read the CAM yaw rate with the ETSI sign
YawRateValue is positive to the left (degSec-000-01ToLeft(1), TS 102 894-2),
while Cam.yawRateDps is positive clockwise, to the right, which is what the
use-case engine and its heading-trend fallback assume. CamUperCodec used the
value as it is in both directions, so every CAM this phone sent showed a
standard receiver the opposite turn, and received CAMs were read the wrong
way round in turn detection. It now negates on encode and decode. The
expected bytes for a right turn in CamEncodeGoldenTest come from asn1tools,
not from this encoder.

The CiT One's CAM topic (v2x-uca/output/json/cam) is left-positive too, as
its API document says and as 316 of 316 turning samples in the logged runs
confirm, so CamParser negates as well. Its obu_gnss topic is documented as
left-positive but sends yawRate_degps right-positive in practice (27 of 27
turning windows in the 2026-03-18 bacospat log), so ObuGnssParser keeps the
value and now reads that documented key, which it used to miss.
2026-11-18 14:56:17 +01:00
..
2026-06-03 14:51:31 +02:00