Hi all, I’ve coded before, but never in VEX. I want a motor to move when I depress a button on my controller. The specific part of my program that does this is:
if controller_1.buttonr2(): sucker_1.spin(FORWARD) pass
When the program is ran, I get the error:
“Traceback (most recent call last): Python exception …
File “userpy”, line 90, in
AttributeError: no such attribute”
Do I need to import some sort of controller library for this function to work correctly?
Any help is appreciated, thank you in advance.