I know that i have asked a similar question before, but this one is slightly different. So right now we have a cap flipper that activates with the two back controller buttons, R1 and L1.(BTW V5, VCS; C++) After we press either of the two back buttons, the motor continues to spin, so we have to press “A” to stop the motor from burning out. I wanted to know if there is a way to make my code from the claw motor to continue to spin into the claw motor spinning only 180 degrees, or stops when the button is released.(Preferably the former one) Any help would be appreciated
The following is my claw code which includes R1 L1 and the A button:
You could change the if pressing A into an else statement. If you want it to stop when you let go.
if you want it to turn for 180 degrees use the start rotate for command.