pR&D 4 Code

Preliminary Research and Development Part 4 Arduino Code


// Accelerate from speed 0 to 25 in the forwards direction
celerate(4,0,25,3);
motorSpeed(4,25);
goFor(1);
// Slow down motor speed to help reversing process
motorSpeed(4,20);
goFor(2);
// Reverse all motors
reverse(4);
motorSpeed(4,25);
goFor(2);
// Stop all motors
brake(4);