UPS: ups_pct_source and ups_charge_ah (counted charge); host.ndjson in capture sessions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DDwfd6Ki8UfG4hK6W5YpJz
This commit is contained in:
@@ -17,6 +17,7 @@ ground truth. Prior art and first candidates: [the prior-art report](../reports/
|
|||||||
| `vehicle.ndjson` | `decoder` and `obd-poller` via the bus | decoded CAN signals, and the `obd_*` references from the K-line through the ELM327 (rpm, speed, throttle, load, MAF, timing, O2 every round; coolant, intake air, trims every 5 s); `env.timestamp` is the reply's arrival at the Orin |
|
| `vehicle.ndjson` | `decoder` and `obd-poller` via the bus | decoded CAN signals, and the `obd_*` references from the K-line through the ELM327 (rpm, speed, throttle, load, MAF, timing, O2 every round; coolant, intake air, trims every 5 s); `env.timestamp` is the reply's arrival at the Orin |
|
||||||
| `events.ndjson` | marks from the app | when each step happened |
|
| `events.ndjson` | marks from the app | when each step happened |
|
||||||
| `gnss.ndjson` | gpsd (SIM7600) | speed and position for the drive |
|
| `gnss.ndjson` | gpsd (SIM7600) | speed and position for the drive |
|
||||||
|
| `host.ndjson` | `orin-status` via the bus (`yukart/host/*`) | the Orin's own state beside the drive: temperatures, load, power, links, UPS (since 2026-10-16) |
|
||||||
| `imu.bin` (`imu.ndjson`) | `imu` via the bus (`yukart/raw/imu`) | every IMU sample, packed (svc-core `imu --export` prints it as JSON lines; sessions before 2026-10-16 and anything that does not pack are in `imu.ndjson`), raw module axes, Orin receive time: calibration (27–30) and, once calibrated, motion for the drive |
|
| `imu.bin` (`imu.ndjson`) | `imu` via the bus (`yukart/raw/imu`) | every IMU sample, packed (svc-core `imu --export` prints it as JSON lines; sessions before 2026-10-16 and anything that does not pack are in `imu.ndjson`), raw module axes, Orin receive time: calibration (27–30) and, once calibrated, motion for the drive |
|
||||||
|
|
||||||
## Operating it from the app
|
## Operating it from the app
|
||||||
|
|||||||
+17
-1
@@ -760,12 +760,28 @@
|
|||||||
"unit": "percent",
|
"unit": "percent",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"source": "host",
|
"source": "host",
|
||||||
"description": "UPS charge estimate from cell voltage, corrected for load. An estimate, steadiest at rest",
|
"description": "UPS charge: counted from the current since the charger last stopped at full when ups_pct_source is 'counted'; otherwise the estimate from cell voltage, corrected for load, steadiest at rest",
|
||||||
"range": [
|
"range": [
|
||||||
0,
|
0,
|
||||||
100
|
100
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"ups_pct_source": {
|
||||||
|
"unit": "",
|
||||||
|
"type": "string",
|
||||||
|
"source": "host",
|
||||||
|
"description": "Where ups_battery_pct comes from: 'counted' (current integrated since the last full charge, against the configured capacity) or 'voltage' (no full charge seen since the count was lost: pack out, Orin off a while, capacity changed)"
|
||||||
|
},
|
||||||
|
"ups_charge_ah": {
|
||||||
|
"unit": "Ah",
|
||||||
|
"type": "number",
|
||||||
|
"source": "host",
|
||||||
|
"description": "UPS charge counted since the last full charge; absent until there has been one",
|
||||||
|
"range": [
|
||||||
|
0,
|
||||||
|
20
|
||||||
|
]
|
||||||
|
},
|
||||||
"ups_state": {
|
"ups_state": {
|
||||||
"unit": "",
|
"unit": "",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
Reference in New Issue
Block a user