Output Commands

 

rv.color_rgb()

Command:

.color_rgb()

Command
Syntax:

.color_rgb(red, green, blue)

Python
Code
Samples:

rv.color_rgb(255, 255, 255)

Range:

N/A

Describe:

Set the RGB color to be displayed on the Rover's RGB LED. Same syntax as for all RGB LED operations with COLOR, etc.

Result:

Return the current RGB color, as a three-element list, that is being displayed on the Rover's RGB LED

Type or
Addressable
Component:

Control

Note: This Rover control command is executed immediately.

 

rv.color_blink()

Command:

.color_blink()

Command
Syntax:

.color_blink(frequency, time)

Python
Code
Samples:

rv.color_rgb(255, 255, 10)

rv.color_blink(2, 10)

Range:

N/A

Describe:

Used as complement for rv.color_rgb(). Cause a blinking with the current color configuration.

frequency: Range 0.1-20

time: Range 0.1-100

Result:

Blinks LED that is being displayed on the Rover's RGB LED

Type or
Addressable
Component:

Control

Note: This Rover control command is executed immediately.

 

rv.color_off()

Command:

.color_off()

Command
Syntax:

.color_off(frequency, time)

Python
Code
Samples:

rv.color_rgb(255, 255, 10)

rv.color_off()

Range:

N/A

Describe:

Turns off RGB LED that is being displayed on the Rover's RGB LED.

Result:

N/A

Type or
Addressable
Component:

Control

Note: This Rover control command is executed immediately.

 

rv.motor_left()

Command:

.motor_left()

Command
Syntax:

.motor_left(power, time)

Python
Code
Samples:

rv.motor_left(l00, 2)

Range:

left_wheel: from -255 to 255

time: from 0.1 to 100

Describe:

Set left motor direct PWM value. CCW = forward, CW = backward, pwm value negative = forward, positive = backward. TIME option available in all modes.

Result:

Left wheel motor and control for direct control (advanced) use.

Type or
Addressable
Component:

Control

Note: This Rover control command is sent and executed in a queue.

 

rv.motor_right()

Command:

.motor_right()

Command
Syntax:

.motor_right(power, time)

Python
Code
Samples:

rv.motor_right(l00, 2)

Range:

right_wheel: from -255 to 255

time: from 0.1 to 100

Describe:

Set right motor direct PWM value. CCW = forward, CW = backward, pwm value negative = forward, positive = backward. TIME option available in all modes.

Result:

Right wheel motor and control for direct control (advanced) use.

Errors:

Error: Value out of range -255 to 255.

Error: Time out of range.

Type or
Addressable
Component:

Control

Note: This Rover control command is sent and executed in a queue.

 

rv.motors()

Command:

.motors()

Command
Syntax:

.motors(“left_dir”, left_wheel, “right_dir”, “right_wheel”, time)

Python
Code
Samples:

rv.motors(“cw”|”ccw”, left_wheel, “cw”|”ccw”,right_wheel, time)

Range:

left_wheel: from 0 to 255

right_wheel: from 0 to 255

time: from 0.1 to 100

Describe:

Set left or right or both motor PWM values. Negative values imply CCW and Positive values imply CW. Left CW=backward motion. Left CCW=forward motion. Right CW=forward motion, Right CCW=backward motion. PWM values may be numeric from 0 to255. Value of 0 is stop.

Result:

Both the LEFT and RIGHT motor, managed as a single object for direct control (advanced) use.

Type or
Addressable
Component:

Control

Note: This Rover control command is sent and executed in a queue.