Programming the MRPi1 robot with C language .
API functions
- Leds controls :
led() : set led on or off.
ledToggle() : toggle led.
- Motors controls :
forward() : move the robot MRPi1 forward.
forwardC() : move the robot MRPi1 forward with control.
back() : move the robot MRPi1 back without control.
backC() : move the robot MRPi1 back with control.
stop() : stop the robot MRPi1.
turnRight() : turn right the robot MRPi.
turnRightC() : turn right the robot MRPi with control.
turnLeft() : turn left the robot MRPi.
turnLeftC() : turn left the robot MRPi with control.
motorRight() : control the right motor.
motorLeft() : control the left motor.
- Temperature function :
temperature() : read the temperature sensor.
- Battery function :
battery() : read the battery voltage.
- Firmware function :
firmwareVersion() : return the firmware version.
- Ground sensor function :
groundSensor() : read the ground sensors.
- Ambiant light function :
ambiantLight() : read the ambiant light sensors.
- Proximity sensors function :
proxSensor() : read the proximity sensors.
- Accelerometer :
acceleroX() : read the X axis acceleration.
acceleroY() : read the Y axis acceleration.
acceleroZ() : read the Z axis acceleration.
- Encoder:
encoderLeft() : read the encoder left value.
encoderRight() : read the encoder right value.
