home *** CD-ROM | disk | FTP | other *** search
- #ifndef lint
- static char sccsid[] = "@(#)control_robot.c 1.1 92/05/28 SMI" ;
- /* from control_robot.c 1.2 88/10/19 SMI */
- #endif
-
- /*
- * this file contains specific control stuff:
- *
- * control_ship()
- * read control inputs and act accordingly
- *
- */
-
-
- #include <stdio.h>
- #include <math.h>
- #include "dstar.h"
- #include "object_types.h"
-
-
-
- extern int debug_level ;
-
-
-
-
- /****
- *
- * read control inputs, update ship's position/velocity/"up" vectors
- *
- ****/
-
-
- control_ship()
- {
-
- if(!auto_pilot)
- adjust_vector(Me, &Me->Delta) ;
- else
- auto_control(Me, AUTO_RANGE, MAX_TURN, MAX_SLEW) ;
-
- adjust_vectors(Me) ;
- }
-