Code:

/****************************************************************************************

* These values define the speed trajectory to reach a certain position. *

* The higher the difference the higher the speed to move the antenna. *

* Range from 180-20-8-2-0 degrees */

#define SPEED_DEG_1 = 200;

#define SPEED_DEG_2 = 80;

#define SPEED_DEG_3 = 20;

/****************************************************************************************/

int newXAxis;

int newYAxis;

int rotorXAxis;

int rotorYAxis;

The routine should do the following:* These values define the speed trajectory to reach a certain position. *

* The higher the difference the higher the speed to move the antenna. *

* Range from 180-20-8-2-0 degrees */

#define SPEED_DEG_1 = 200;

#define SPEED_DEG_2 = 80;

#define SPEED_DEG_3 = 20;

/****************************************************************************************/

int newXAxis;

int newYAxis;

int rotorXAxis;

int rotorYAxis;

if the distance lies belowe the 200 then go go full speed,

between 200 and 80 use 3/4 speed, between 80 and 20 half speed

and below 20 use the minimum speed.