|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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; } |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|