Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1664 pj 1
/* ------------------ */
2
/*  Useful constants  */
3
/* ------------------ */
4
 
5
#ifndef __CONST_H_
6
 
7
#define __CONST_H_
8
 
9
/* Screen dimensions */
10
#define SCREEN_WIDTH  800
11
#define SCREEN_HEIGHT 600
12
#define SCREEN_BIT_COLORS 16
13
 
14
#define FORWARD 0
15
#define BACKWARD 1
16
#define HIGHWAY_Y_MIN 100
17
#define HIGHWAY_Y_MAX 400
18
 
19
#define TRACK_WIDTH 500
20
#define TRACK_HEIGHT 500
21
/* Track position */
22
#define TRACK_X1	0
23
#define TRACK_Y1	0
24
#define TRACK_X2	TRACK_X1+TRACK_WIDTH-1
25
#define TRACK_Y2	TRACK_Y1+TRACK_HEIGHT-1
26
 
27
/* Information display coords */
28
#define CMD_WIDTH	TRACK_WIDTH
29
#define CMD_HEIGHT	(SCREEN_HEIGHT-TRACK_HEIGHT-3)
30
 
31
 
32
#define CONTROL_WCET    1000
33
#define CONTROL_PERIOD 40000
34
 
35
#define RAD             8
36
#define Y_INCREMENT    10
37
#define MAN_WCET     1000
38
#define MAN_PERIOD  40000
39
 
40
#endif
41