Programming Help

We learned about something called slew rate. Recently, we had issues with our robot popping a PTC half way through the match with mostly all our motors at 90 speed. I’m not quite sure where to implement slew rate or if there is any other way were i could make my motors run around 127 without slowing down during a match. Any help is appreciated.
vex forums code 1.JPG
vex forums code 2.JPG
vex forums code 3.JPG
vex forums code 4.JPG
vex forums code 5.JPG
vex forums code 6.JPG
vex forums code 7.JPG

I’ve recently tried out jpearman’s slew rate library

Basically, it slows down your motor’s acceleration to stop a voltage spike. This should help prevent your motors from burning out I tried to put it on our robot, but our driver said it made the robot’s movement too sluggish.

For more information about slew rate and how to implement jpearman’s slew rate library, I found these link s incredibly helpful.