EZ-Robotics / EZ-Template

Simple plug-and-play PROS template that handles drive base functions for VEX robots.
https://ez-robotics.github.io/EZ-Template/
Mozilla Public License 2.0
69 stars 27 forks source link

Slew doesn't respect maximum power #89

Closed ssejrog closed 5 months ago

ssejrog commented 7 months ago

Expected Behavior

When the maxmimum speed for the movement is less then the slew constants, the slew constants should be ignored.

Actual Behavior

Slew constants override the input speed. This should not happen.

In slew initialize, is_enabled should be set to imaximum_speed < constants.min_speed ? false : enabled;