Class: ThreeWheelDistanceSensingRobotController

ThreeWheelDistanceSensingRobotController

Class representing a robot's application controller.

Constructor

new ThreeWheelDistanceSensingRobotController(id)

Parameters:
Name Type Description
id string The id of the robot
Author:
  • Loris Tissino (http://loris.tissino.it)
License:
  • MIT
Source:

Methods

backup()

Makes a backup maneuvre: backward, turn, forward again.
Source:

beep() → {ThreeWheelDistanceSensingRobotController}

Makes the buzzer beep.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

decreaseSpeed() → {ThreeWheelDistanceSensingRobotController}

Decreases speed of 0.05.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

enableInfraredReader() → {ThreeWheelDistanceSensingRobotController}

Enables the infrared reader.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

enableSonars() → {ThreeWheelDistanceSensingRobotController}

Enables all the sonars.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

handleInfraredReaderCode()

Handles the code read by the infrared reader.
Source:

increaseSpeed() → {ThreeWheelDistanceSensingRobotController}

Increases speed of 0.05.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

leftBackward()

Activates the left wheel to move backward.
Source:

leftForward()

Activates the left wheel to move forward.
Source:

moveBackward()

Activates the wheels to move backward.
Source:

moveForward()

Activates the wheels to move forward.
Source:

pause() → {ThreeWheelDistanceSensingRobotController}

Makes the robot pause.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

play() → {ThreeWheelDistanceSensingRobotController}

Makes the robot play.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

rightBackward()

Activates the right wheel to move backward.
Source:

rightForward()

Activates the right wheel to move forward.
Source:

setSpeed(speed) → {ThreeWheelDistanceSensingRobotController}

Sets the speed of the wheels.
Parameters:
Name Type Description
speed float The speed (between 0.0 and 1.0, otherwise clipped)
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

setup(options) → {ThreeWheelDistanceSensingRobotController}

Configures the robot.
Parameters:
Name Type Description
options Object The configuration settings (currently unused)
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

stop()

Stops both wheels.
Source:

toggleLedBlinking(led) → {ThreeWheelDistanceSensingRobotController}

Toggles LED's blinking.
Parameters:
Name Type Description
led string The code associated to the LED
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

toggleLedBlinking1() → {ThreeWheelDistanceSensingRobotController}

Toggles LED1's blinking.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

toggleLedBlinking2() → {ThreeWheelDistanceSensingRobotController}

Toggles LED2's blinking.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

toggleLedBlinking3() → {ThreeWheelDistanceSensingRobotController}

Toggles LED3's blinking.
Source:
Returns:
- The controller
Type
ThreeWheelDistanceSensingRobotController

turnLeft()

Activates the wheels to turn left.
Source:

turnRight()

Activates the wheels to turn right.
Source: