sl-firmware
3e60d7552a
feat: Battery voltage telemetry and LVC (Issue #613)
- Add include/lvc.h + src/lvc.c: 3-stage low voltage cutoff state machine
WARNING 21.0V: MELODY_LOW_BATTERY buzzer, full motor power
CRITICAL 19.8V: double-beep every 10s, 50% motor power scaling
CUTOFF 18.6V: MELODY_ERROR one-shot, motors disabled + latched
200mV hysteresis on recovery; CUTOFF latched until reboot
- Add JLINK_TLM_LVC (0x8B, 4 bytes): voltage_mv, percent, protection_state
jlink_send_lvc_tlm() frame encoder in jlink.c
- Wire into main.c:
lvc_init() at startup; lvc_tick() each 1kHz loop tick
lvc_is_cutoff() triggers safety_arm_cancel + balance_disarm + motor_driver_estop
lvc_get_power_scale() applied to ESC speed command (100/50/0%)
1Hz JLINK_TLM_LVC telemetry with fuel-gauge percent field
- Add LVC thresholds to config.h (LVC_WARNING/CRITICAL/CUTOFF/HYSTERESIS_MV)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 10:14:57 -04:00
..
2026-03-02 10:34:35 -05:00
2026-03-14 15:04:58 -04:00
2026-03-07 10:01:02 -05:00
2026-03-03 17:35:34 -05:00
2026-02-28 19:43:48 -05:00
2026-03-02 09:40:18 -05:00
2026-03-02 12:51:42 -05:00
2026-03-14 15:58:13 -04:00
2026-03-15 10:14:57 -04:00
2026-03-03 17:35:34 -05:00
2026-03-03 17:35:34 -05:00
2026-03-04 10:36:35 -05:00
2026-03-06 10:27:36 -05:00
2026-03-06 10:27:36 -05:00
2026-03-06 10:27:36 -05:00
2026-03-02 13:29:18 -05:00
2026-03-14 13:37:14 -04:00
2026-03-14 10:38:06 -04:00
2026-03-06 22:35:24 -05:00
2026-02-28 17:48:53 -05:00
2026-02-28 11:58:23 -05:00
2026-03-02 11:51:26 -05:00
2026-02-28 21:07:15 -05:00
2026-03-06 22:35:24 -05:00
2026-03-15 10:14:57 -04:00
2026-03-02 11:06:13 -05:00
2026-03-15 10:14:57 -04:00
2026-02-28 17:48:53 -05:00
2026-02-28 21:06:26 -05:00
2026-03-14 12:25:29 -04:00
2026-02-28 17:15:40 -05:00
2026-02-28 17:42:24 -05:00
2026-03-02 09:56:18 -05:00
2026-03-14 12:25:29 -04:00
2026-03-14 11:51:11 -04:00
2026-03-07 10:01:02 -05:00
2026-03-02 20:49:26 -05:00
2026-03-01 04:55:54 -05:00
2026-03-14 10:38:06 -04:00
2026-03-03 19:00:12 -05:00
2026-03-14 15:04:58 -04:00
2026-03-01 04:55:54 -05:00
2026-03-02 12:22:09 -05:00
2026-03-02 21:09:17 -05:00