forked from P33a/SimTwo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRemote.pas
48 lines (34 loc) · 890 Bytes
/
Remote.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
unit Remote;
{$MODE Delphi}
interface
const
MaxRemWheels = 4;
MaxRemIrSensors = 8;
type
TRemRobot = packed record
x,y,teta: single;
vt,vn,w: single;
Odos: packed array[0..MaxRemWheels-1] of integer;
IRSensors: packed array[0..MaxRemIrSensors-1] of single;
//Scanner: packed array[1..64] of byte;
//ScannerAngle: double;
//has_positions, has_speeds, has_odos: byte;
end;
TRemBall = packed record
x,y,vx,vy: single;
//bcolor: integer;
//goal: boolean;
end;
TRemState = packed record
id,Number: integer;
Robot: TRemRobot;
Ball: TRemBall;
end;
TRemControl = packed record
U: packed array[0..MaxRemWheels-1] of single;
Wref: packed array[0..MaxRemWheels-1] of single;
num, kick1, kick2, flags: byte;
x,y,z,teta: single;
end;
implementation
end.