Exercise 1

Programming Basics

Glossary of AEV Functions

“brake”: Halts the motors.

“celerate”: Will change the speed of the selected motors from a selected power to a different selected power over a designated period of time.

“goFor”: This extends the previous command for the designated amount of time.

“goToRelativePosition”: This directs the AEV to a location based on its current position.

“goToAbsolutePosition”: This directs the AEV to a location based on its starting position.

“motorSpeed”: This sets the speed of the select motors.

“reverse”: This reverses the direction of the selected motors.

“rotateServo”: This turns the servo,

“getVehiclePostion”: This returns the AEV’s position.

“getTotalMarks”: This returns the total marks the AEV has traveled.

“getForwardsTotal”: This returns the total amount of marks the AEV has traveled forward.

“getBackwardsTotal”: This returns the total amount of marks the AEV has traveled backward.

“aevDirection”: This returns the direction of the AEV.