Steering angle (0C0, signed 0.1°), main beam, front fogs; layouts can be signed; dipped beam doubted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DDwfd6Ki8UfG4hK6W5YpJz
This commit is contained in:
+48
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"$comment": "Single source for signal identity. Topic name and envelope unit are both derived from these entries and are never authored separately. source=obd2 is standardised (OBD-II mode 01 over the K-line, through the ELM327): calibration references, every name prefixed obd_ (project-yukart decision 30); source=host is the Orin itself (orin-status), not the car. source=gnss is the receiver (svc-core gnss), on yukart/gnss/<signal>. source=imu is the WT61 IMU, already turned into the car's frame (mounting and gravity handled by its publisher), on yukart/imu/<signal>. source=z27ag is reverse-engineered from the car's own broadcast frames, and its 'can' block is the only place its layout is written down: id (11-bit, hex string), byte (first data byte, 0-7), length in bits (1, 8 or 16), bit (length 1 only: 0 = LSB of that byte), order (length 16: big = byte first is most significant, little = the reverse), scale and offset (value = raw * scale + offset; booleans are raw != 0). 'evidence' names the contracts report that found it.",
|
||||
"$comment": "Single source for signal identity. Topic name and envelope unit are both derived from these entries and are never authored separately. source=obd2 is standardised (OBD-II mode 01 over the K-line, through the ELM327): calibration references, every name prefixed obd_ (project-yukart decision 30); source=host is the Orin itself (orin-status), not the car. source=gnss is the receiver (svc-core gnss), on yukart/gnss/<signal>. source=imu is the WT61 IMU, already turned into the car's frame (mounting and gravity handled by its publisher), on yukart/imu/<signal>. source=z27ag is reverse-engineered from the car's own broadcast frames, and its 'can' block is the only place its layout is written down: id (11-bit, hex string), byte (first data byte, 0-7), length in bits (1, 8 or 16), bit (length 1 only: 0 = LSB of that byte), order (length 16: big = byte first is most significant, little = the reverse), signed (lengths 8 and 16: two's complement; default unsigned), scale and offset (value = raw * scale + offset; booleans are raw != 0). 'evidence' names the contracts report that found it.",
|
||||
"signals": {
|
||||
"obd_vehicle_speed_kph": {
|
||||
"unit": "kph",
|
||||
@@ -168,6 +168,26 @@
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"steering_angle_deg": {
|
||||
"unit": "degree",
|
||||
"type": "number",
|
||||
"source": "z27ag",
|
||||
"description": "Steering wheel angle: positive to the left. About -2.7° driving straight; lock to lock about ±475° (ratio about 16:1)",
|
||||
"range": [
|
||||
-600,
|
||||
600
|
||||
],
|
||||
"can": {
|
||||
"id": "0x0C0",
|
||||
"byte": 0,
|
||||
"length": 16,
|
||||
"order": "little",
|
||||
"signed": true,
|
||||
"scale": 0.1,
|
||||
"offset": 0,
|
||||
"evidence": "Z27AG-DECODE-2"
|
||||
}
|
||||
},
|
||||
"brake_pedal": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
@@ -237,7 +257,7 @@
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Dipped headlights on",
|
||||
"description": "Probably not dipped beam: clean in daylight (2026-10-13) but flickering at each switch movement at night (2026-10-15), and the Z27AG's cluster has no dipped-beam lamp (side lights, main beam and fogs only), so frame 423, the cluster's status, has little reason to carry it. Kept under this name until a light-switch walk shows what it is",
|
||||
"can": {
|
||||
"id": "0x423",
|
||||
"byte": 3,
|
||||
@@ -246,6 +266,32 @@
|
||||
"evidence": "Z27AG-DECODE-1"
|
||||
}
|
||||
},
|
||||
"main_beam": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Main beam lamp on, flash-to-pass included",
|
||||
"can": {
|
||||
"id": "0x423",
|
||||
"byte": 2,
|
||||
"bit": 7,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-2"
|
||||
}
|
||||
},
|
||||
"front_fogs": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
"source": "z27ag",
|
||||
"description": "Front fog lamps on (they need side lights or dipped beam)",
|
||||
"can": {
|
||||
"id": "0x423",
|
||||
"byte": 2,
|
||||
"bit": 4,
|
||||
"length": 1,
|
||||
"evidence": "Z27AG-DECODE-2"
|
||||
}
|
||||
},
|
||||
"door_open": {
|
||||
"unit": "",
|
||||
"type": "boolean",
|
||||
|
||||
Reference in New Issue
Block a user