Subversion Repositories shark

Rev

Blame | Last modification | View Log | RSS feed

/* ------------------ */
/*  Useful constants  */
/* ------------------ */

#ifndef __CONST_H_

#define __CONST_H_

/* Screen dimensions */
#define SCREEN_WIDTH  800
#define SCREEN_HEIGHT 600
#define SCREEN_BIT_COLORS 16

#define FORWARD 0
#define BACKWARD 1
#define HIGHWAY_Y_MIN 100
#define HIGHWAY_Y_MAX 400

#define TRACK_WIDTH 500
#define TRACK_HEIGHT 500
/* Track position */
#define TRACK_X1        0
#define TRACK_Y1        0
#define TRACK_X2        TRACK_X1+TRACK_WIDTH-1
#define TRACK_Y2        TRACK_Y1+TRACK_HEIGHT-1

/* Information display coords */
#define CMD_WIDTH       TRACK_WIDTH
#define CMD_HEIGHT      (SCREEN_HEIGHT-TRACK_HEIGHT-3)


#define CONTROL_WCET    1000
#define CONTROL_PERIOD 40000

#define RAD             8
#define Y_INCREMENT    10 
#define MAN_WCET     1000
#define MAN_PERIOD  40000

#endif