Files
swiftcontrol/lib/widgets/controller
Jonas Acker ba1a785890 fix(steering): read a centred bar as 0°, not -0°
The gauge printed the tilt with toStringAsFixed(0), which keeps the sign
of a negative zero. An Elite Sterzo reports a centred bar as -0 (its
angle is negated for the gauge), and any tilt a hair right of centre
rounds to -0 too, so a bar at rest read "-0°". The readout now rounds
to a whole number first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 23:13:58 +02:00
..
2026-05-04 12:06:56 +02:00
2026-05-04 12:06:56 +02:00