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
70 stars 27 forks source link

Driving cannot be chained from a turn #123

Closed ssejrog closed 2 months ago

ssejrog commented 2 months ago

In 3.1.0-RC2, the code below will turn 180deg and will not attempt to drive. The new targets are not set correctly for the right side of the drive in pid_wait_quick_chain(). Thanks @Aidan-Limketkai for finding this issue!

chassis.pid_turn_set(180_deg, 110);
chassis.pid_wait_quick_chain();

chassis.pid_drive_set(-24_in, 110, true);
chassis.pid_wait_quick_chain();