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
73 stars 35 forks source link

set_pid_constants doesn't do anything #29

Closed ssejrog closed 2 years ago

ssejrog commented 2 years ago

Expected Behavior

chassis.set_pid_constants() should change the pid constants

Actual Behavior

chassis.set_pid_constants() does not change the pid constants

Steps to Reproduce

Uncomment default_constants() in initialize(), modify constants in default_constants(), and nothing changes.

Versions

EZ-Template Version: 2.0.0

ssejrog commented 2 years ago

To set constants, users will now have to use chassis.set_pid_constants(&chassis.swingPID, 7, 0, 45, 0);. The & wasn't needed in the previous version.