/* motor.h * * This file contains the routines used to control all the motors in the robot. These * include rotation around the central axis, turret rotation, and robot reversal. To * overcome mechanical delays we occassionally resort to using the blockingcode routine * to halt (delay) useuful CPU execution for the specified interval. */ #ifndef MOTOR_H #define MOTOR_H #include "constants.h" #include "beacon.h" void RotateRobot(Direction toTurn); void RotateTurret(BeaconCode newPos, BeaconCode oldPos); void ReverseRobot(unsigned int duration); void BlockingCode(int duration); #endif // MOTOR_H