srobo / competition-simulator

A simulator for Student Robotics Virtual Competitions
https://studentrobotics.org/docs/simulator/
MIT License
8 stars 2 forks source link

Improve self-limiting of keyboard robot inputs #441

Closed PeterJCLaw closed 9 months ago

PeterJCLaw commented 9 months ago

I've occasionally seen errors from non-boosted inputs which appear to be too large for the motors to handle. The code seems to allow that to happen if there's more than one input character in the buffer. Clamping all inputs (not just boosted ones) should make these errors impossible.