new VirtualJoystick()
Extends
- Electronic
Members
-
protocol
-
getter of protocol
Methods
-
leftSpeed(speed) → {Instance}
-
set left speed
Parameters:
Name Type Description speed
Number the left speed
Returns:
Instance -@this
-
rightSpeed(speed) → {Instance}
-
set right speed
Parameters:
Name Type Description speed
Number the right speed
Returns:
Instance -@this
-
run(speed) → {Instance}
-
run
Parameters:
Name Type Description speed
Number 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 leftSpeed
Number the left speed
rightSpeed
Number the right speed
Returns:
Instance -@this