View Single Post
  #1   Spotlight this post!  
Unread 19-03-2013, 20:38
4733 4733 is offline
Registered User
FRC #4733
 
Join Date: Feb 2013
Location: calgary
Posts: 4
4733 is an unknown quantity at this point
activate second-function motor with joystick

i'm trying to activate a motor on the push of a button from one of the joysticks.
i have absolutely no idea how to go about doing this in java.
how do you set a proper wpm?
how do u make it recognise when a button is pressed, then activate the PWM?

if anyone could help me that would be amazing.

here's what i tried already:

PWM test = new PWM(5); // in case pwm ( channel 5)
RobotDrive test2 = new RobotDrive(5,0,0,0);// in case robot drive (channel 5)

just some shots in the dark


what i tried for the button recognition is:

while (buttonNum == 5)// link to button no.5
{
test = true;
test2 = true;
}
Reply With Quote