new VirtualJoystick()
Extends
- Electronic
Members
-
protocol
-
getter of protocol
Methods
-
leftSpeed(speed) → {Instance}
-
set left speed
Parameters:
Name Type Description speedNumber the left speed
Returns:
Instance -@this
-
rightSpeed(speed) → {Instance}
-
set right speed
Parameters:
Name Type Description speedNumber the right speed
Returns:
Instance -@this
-
run(speed) → {Instance}
-
run
Parameters:
Name Type Description speedNumber the balance speed
Returns:
Instance -@this
-
setStop() → {Instance}
-
stop, that is run with 0 speed
Returns:
Instance -@this
-
speed(leftSpeed, rightSpeed) → {Instance}
-
set both left speed and right speed
Parameters:
Name Type Description leftSpeedNumber the left speed
rightSpeedNumber the right speed
Returns:
Instance -@this