Programming the MRPiZ robot in python language .
API functions
- Motors controls :
forward() : move the robot MRPiZ forward.
forward_mm() : move the robot MRPiZ forward with a millimeter parameter (Pulling function).
back() : move the robot MRPiZ back.
back_mm() : move the robot MRPiZ back with a millimeter parameter (Pulling function).
stop() : stop the robot MRPiZ.
turnRight() : turn right the robot MRPiZ.
turnRight_degree() : turn right with a angle parameter (Pulling function).
turnLeft() : turn left the robot MRPiZ.
turnLeft_degree() : turn left with a angle parameter (Pulling function).
motorRight() : control the right motor.
motorLeft() : control the left motor.
- Position and orientation controls :
controlEnable(): Enable the position and orientation controls.
controlDisable(): Disable the position and orientation controls.
Robot position :
robotPositionX(): read robot position on the x axis.
robotPositionY(): read robot position on the y axis.
robotPositionO(): read robot orientation.
- Battery :
battery() : read the battery voltage.
- Read usb voltage :
readVusb() : read the usb voltage.
- Firmware :
firmwareVersion() : return the firmware version.
- Proximity sensors :
proxSensor() : read the proximity sensors.
- Switch :
switch() : read the switch.
- Encoder :
encoderLeft() : read the encoder left value.
encoderRight() : read the encoder right value.