forward_mm()
Description
Move the robot forward with millimeter distance.
Syntax
forward_mm(int speed, int distance)
Parameter
- speed : the speed of the robot can be between 0 to 100.
- distance : the forward distance (millimeter value)
Return
None
Exemple
#include <mrduino.h>
void setup()
{
Serial.begin(115200);
controlEnable();
// move of 100 mm
forward_mm(10, 100);
}
void loop()
{
}
