From e47468fc987007d7c446f91e2ed39875575fabed Mon Sep 17 00:00:00 2001 From: Mikkeli Date: Fri, 16 Oct 2026 00:17:34 +0900 Subject: [PATCH] UPS: ups_pct_source and ups_charge_ah (counted charge); host.ndjson in capture sessions Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DDwfd6Ki8UfG4hK6W5YpJz --- docs/impl/plans/Z27AG-CAPTURES.md | 1 + schema/signals.json | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/impl/plans/Z27AG-CAPTURES.md b/docs/impl/plans/Z27AG-CAPTURES.md index 7449689..45e80ca 100644 --- a/docs/impl/plans/Z27AG-CAPTURES.md +++ b/docs/impl/plans/Z27AG-CAPTURES.md @@ -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 | | `events.ndjson` | marks from the app | when each step happened | | `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 | ## Operating it from the app diff --git a/schema/signals.json b/schema/signals.json index 22f9c4a..104e85a 100644 --- a/schema/signals.json +++ b/schema/signals.json @@ -760,12 +760,28 @@ "unit": "percent", "type": "number", "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": [ 0, 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": { "unit": "", "type": "string",