Skip to content

Hardware Protocol

Sebastian Bischoff edited this page Apr 3, 2017 · 1 revision

Communication between Python (on raspberry pi) and Java (on raspberry pi)

Motor commands

int motorFront
int motorBack
int motorLeft
int motorRight

A positive number means forward, a negative number means backward. The naming is relative to the pi camera which is in the front.

Sensor readings

Right color sensor:

int red
int green
int blue

The readings are between 0 and 255 in the default sRGB space.

Left color sensor:

8x int

Light Values from the LightSensorArray