Real-time motor current visualization with: - Subscribes to /saltybot/motor_currents for dual-motor current data - Rolling 60-second history window with automatic data culling - Dual-axis line chart: * Left motor current (cyan) in Amps * Right motor current (amber) in Amps - Canvas-based rendering for performance - Thermal warning threshold line (25A, configurable): * Dashed red line overlay on chart * Configurable threshold constant for motor specs * Auto-detects thermal warnings when threshold exceeded - Real-time statistics display: * Current draw for left and right motors (real-time) * Peak current tracking over 60-second window * Average current calculation * Thermal status indicator with warning badge - Color-coded thermal alerts: * Red background when threshold exceeded * Warning indicator with icon * Left/right motor temperature monitoring - Grid overlay, axis labels, time labels, legend - Takes absolute value of currents (handles reverse direction) Integrated into TELEMETRY tab group as 'Motor Current' tab. Follows established canvas rendering patterns from BatteryChart. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Description
SaltyLab self-balancing bot firmware (STM32F722)
Languages
Python
67.1%
C
11.4%
JavaScript
9.2%
OpenSCAD
7.8%
HTML
1.5%
Other
2.9%