Hey all,
Im wanting to create a program for a sticky servo where when a button is pressed (without holding it continuously) the servo moves to either to positive value or negative value of my choosing (not necessarily 127/-127). Ive seen a few other posts regarding this matter and have seen a general consensus to use the following:
If ( JoystickButton1 == 1 ) {
SetMotor(1,127)
}
Unfortunatley Im still quite new to more advanced programming and am not sure where in easy c I would out this bit of program code. I usually do all our competition programming in field control competition project. Would I put this code above into the operator control tab? If so, would I need to write a variable first. Also, if I put this in the while loop under “operator control” does it matter if this comes before or after other joystick control function blocks that are being used? Thanks for any assistance with this. Also, If you happen to know of a good resource for video tutorials for easy c that would be great help as well. Much appreciated,
-Anthony Milanes
Cyber Viper Robotics