-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPositionTracking.ple
More file actions
55 lines (33 loc) · 928 Bytes
/
PositionTracking.ple
File metadata and controls
55 lines (33 loc) · 928 Bytes
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
49
50
51
52
53
54
55
Date Lookup time;
Integer Lookup PositionChanged;
//Set front wheels angle [-30..30]
Command TurnFrontWheels(Integer);
//Set rear wheels angle [-30..30]
Command TurnRearWheels(Integer);
//Move forward with a given power level [0..100]
Command MoveForward(Integer);
//Move backwards with a given power level [0..100]
Command MoveBackward(Integer);
//Stop
Command StopEngine();
Command pprint(...);
CommandsTest:{
Real pi=0;
Real ct=0;
Date startime;
Boolean oneMeter=false;
Duration maxtime = Duration ("PT5.0S");
Duration tolerance = Duration ("PT0.01S");
Sequence{
Setup:{
startime=Lookup(time,tolerance);
pprint("PLAN SETUP AT",startime);
}
Concurrence{
XX:{
StartCondition (Lookup(PositionChanged)==1);
pprint(">>>>>>>>>>>>>");
}
}
}
}