Log in

View Full Version : How to speed up Motors?


grim42
16-02-2016, 18:52
I am new to Java, and i'm wondering if there is a way to speed up the motor or decrease the speed by pressing a button?
(sorry if i'm too vague with my question)

TimTheGreat
16-02-2016, 19:40
I am new to Java, and i'm wondering if there is a way to speed up the motor or decrease the speed by pressing a button?
(sorry if i'm too vague with my question)


int x = 0

if joystickButton.get()
x+=.2
if joystickButton2.get()
x=-.2

motor.set(x)