AEV Code Glossary

motorSpeed(4,25);

//Program between here

//All motors will run at a 25% of their total power.

 

goFor(2);

//Motors will run at whatever speed they have before this command is issued for 2 seconds.

 

celerate(2,1,15,4)

//Motor(s) 2 will accelerate or decelerate from speed 1 % to speed 15%  in 4 seconds.

 

motorSpeed(4,20);

//Run all motors at a constant speed of 20%

 

goToAbsolutePosition(295,385);

//The motors will run in their current state until the vehicle travels x marks from its starting position.

 

reverse(4);

//Reverse the direction of all motors

 

motorSpeed(4,30);

goFor(1.5);

//Run all motors at a constant speed of 30% power ofr 1.5 seconds.

 

brake(4);

//Stop all motors from turning.