|
| #define | ACCENT gfx_rgb(255, 120, 0) /* Stats identity colour (see stats_screen) */ |
| #define | DIM gfx_rgb(110, 110, 110) |
| #define | WARN gfx_rgb(255, 180, 0) |
| #define | OKC gfx_rgb(0, 255, 0) |
| #define | BADC gfx_rgb(255, 60, 60) |
| #define | PAD_X 6 |
| #define | TITLE_Y (STATUS_BAR_H + 4) |
| #define | BODY_Y (TITLE_Y + 16) |
| #define | LINE_H 12 |
| #define | GROUP_GAP 4 |
| #define | VAL_X (PAD_X + 10 * GFX_CHAR_W) /* value column, after the longest label */ |
| #define | STATUS_X 126 /* OK/BAD verdict column */ |
| #define | HINT_Y 162 |
| #define | LEARNED_WARN_FRACTION 1.10f |
Fuel-gauge debug screen: config-vs-expected check, learned state, EZ reload.
The config rows compare the gauge's shadow-RAM registers against the values fuel_gauge_init() writes, so a lost configuration (POR) or stale constants show up at a glance. The learned block exposes the capacity the ModelGauge has converged on; a value well above design is the corrupted-learning symptom this page exists to catch. A (behind a confirmation popup) re-runs the EZ model load to purge that state — the cycle counter is preserved, health restarts at 100% by design.
- Note
- Développé avec l'assistance de Claude Opus 4.8 (Anthropic), sous la direction de Y. Dos Santos : spécification, revue et validation sur cible par l'auteur.