Thread
:
Motor Buttons
View Single Post
#
4
06-02-2016, 00:14
rich2202
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,117
Re: Motor Buttons
It looks something like this:
Quote:
x=isbuttonpressed();
if(x) {
setmotorspeed(SPEED);
} else {
setmorospeed(0);
}
You need to put in the code for checking to see if the button is pressed, and how to set the motor speed for your motors.
rich2202
View Public Profile
Find all posts by rich2202
Find CD-Media Photos by rich2202
Find CD-Media Papers by rich2202