Arduino Code
reverse(4); // reverse the propeller in order to let the AEV moves forward
motorSpeed(4,25);
goToAbsolutePosition(322);
brake(4);
reverse(4); // do an air break in order to stop the AEV by using less time
motorSpeed(4,30);
goFor(0.9);
brake(4); // end of the air brake code
goFor(9); // wait until gate opens again
reverse(4); // go forward
motorSpeed(4,30); // be more quicker because the gate would close soon
goToAbsolutePosition(700);
brake(4);
reverse(4); // do air brake again to stop the AEV
motorSpeed(4,30);
goFor(0.9);
brake(4); // end of the code brake