Motor.stop() not actually stopping the motor

So I’m having a problem with my driver control program and need some help with it.

if (!(Controller1.ButtonL2.pressing() || Controller1.ButtonR2.pressing())) {

This line doesn’t actually seem to do anything. When I have the arm all the way up and am not touching either of the buttons, it slowly lowers itself down.
Without the block, it stops at the top until the r2 is pressed, then it goes all the way back down no matter how long the button is pressed down. This eventually caused an overheat in the motor, though. Am I just using .stop() incorrectly, or should I switch out the motor?

You will want to use


What you have right now defaults to

Arm.stop(coast), because there are no parameters. This does basically nothing