-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AH.MOD
228 lines (203 loc) · 5.27 KB
/
AH.MOD
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
(*.F- *)
(**********************************************************************
| Title : Program archiwalny VHF
| Author : M.Morawski
| System : LOGITECH MODULA-2/86
| History :
| 29-01-97: M.Postol
| zmiany w zwiazku w wprowadzeniem podzielnika
| 31-03-97: M.Postol
| wlaczal DME
| 12-05-97: M.Postol
| nowa def ScannerI
|
| Copyright (C), CAS LODZ POLAND.
| TEL: 42' 862 547, 42' 87 80 44 FAX/TEL: 42' 84 48 40
|
**********************************************************************)
(*.F+ *)
MODULE AH;
IMPORT
DebugPMD, DOSEntry, MANAGER, PA_PA, ErrorMess, SimScanner, Strings,
PI_Report;
IMPORT
Tune, PI_Qcheck, ScannerI, H_Files, ZoomInterface;
FROM PI_Glowny IMPORT
GlownyEP;
FROM H_Inspekcja IMPORT
InspekcjaEvent, InspekcjaEP;
FROM H_Oblot IMPORT
Zapisz;
FROM H_results IMPORT
anRes;
FROM CommonData IMPORT
SciezkaOpisuPomiaru, OdnDlaPomOdl, GlownyOdbiornik, Promien, Orbita;
FROM Files IMPORT
GoHomeDir;
FROM H_CP_ControlProc IMPORT
StopCPLoop;
FROM CommonTypes IMPORT
(* TYPE *) SigNilVal, OdnDlaPomBleduT, OdnDlaPomOdlT, glownyEvent;
FROM RTSMain IMPORT
Terminate, Status;
FROM Pomiar IMPORT
pomiarEvent, PomiarEP;
FROM PI_Analiza IMPORT
(* TYPE *) analizaEvent,
(* PROCEDURE *) AnalizaEP;
FROM PI_Pomiar IMPORT
InitPomiar;
FROM PI_ArchDate IMPORT
okTab, LoadData;
FROM PI_Drukuj IMPORT
Druk;
FROM H_DataBase IMPORT
NadajnikVHF;
FROM SpecConv IMPORT
SubAngle100, Angle100;
TYPE
MainStates =
( InspekcjaMS,
GlownyMS,
TestMS,
PomiarPrologMS,
PomiarMS,
LadujDaneDoDrukMS,
AnalizaMS,
DrukujMS,
KoniecProgMS );
CONST
Zestaw = FALSE;
AzymANieElew = TRUE;
ElewANieAzym = NOT AzymANieElew;
LocationsTogether = TRUE;
VAR
switchAble : BOOLEAN;
mainState : MainStates;
polaryzacjaOK : BOOLEAN;
podzielnik : INTEGER;
synResult : INTEGER;
dataOk : okTab;
archData : BOOLEAN;
offset : INTEGER;
BEGIN (* main *)
MANAGER.Assert( NOT PA_PA.PomiarANieArchiwum );
mainState := InspekcjaMS;
switchAble := FALSE;
archData := FALSE;
LOOP
CASE mainState OF
InspekcjaMS :
CASE InspekcjaEP() OF
AbortIE :
mainState := KoniecProgMS;
|
AkceptIE :
mainState := GlownyMS;
END (* case InspekcjaEP *);
|
GlownyMS :
archData := FALSE;
polaryzacjaOK := FALSE;
podzielnik := SigNilVal;
synResult := SigNilVal;
GoHomeDir;
CASE GlownyEP( ) OF
AbortGE :
mainState := KoniecProgMS;
|
AkceptGE :
mainState := PomiarPrologMS;
|
DrukujGE :
mainState := LadujDaneDoDrukMS;
|
TestGE :
mainState := TestMS;
|
PlayGE:
mainState := PomiarPrologMS;
archData := TRUE;
LoadData(dataOk);
GoHomeDir;
Promien := CARDINAL(anRes.promienLubOrbita);
Orbita := INTEGER(anRes.promienLubOrbita);
|
PreviewGE:
LoadData(dataOk);
GoHomeDir;
ZoomInterface.Show( dataOk[FALSE], dataOk[TRUE] );
|
RaportKoncowyGE:
PI_Report.RaportKoncowy;
END (* case GlownyEP *);
|
TestMS :
ScannerI.Start(0, ElewANieAzym, LocationsTogether);
PI_Qcheck.Sprawdz; (* !!! ta procedura powinna zwracac wynik testu *)
ScannerI.Stop;
mainState := GlownyMS;
|
LadujDaneDoDrukMS :
archData := TRUE;
LoadData(dataOk);
IF dataOk[Zestaw]
THEN
mainState := AnalizaMS;
ELSE
mainState := GlownyMS;
END (* if dataOk *);
|
PomiarPrologMS :
ScannerI.Start(0, AzymANieElew, LocationsTogether);
InitPomiar(switchAble);
mainState := PomiarMS;
|
PomiarMS :
CASE PomiarEP(switchAble, Zestaw, polaryzacjaOK, synResult, podzielnik) OF
AbortPE :
mainState := GlownyMS;
StopCPLoop;
ScannerI.Stop;
|
ZakonczPE :
mainState := AnalizaMS;
StopCPLoop;
ScannerI.Stop;
END (* case PomiarEP *);
|
AnalizaMS :
CASE AnalizaEP(switchAble,
archData,
Zestaw,
GlownyOdbiornik,
pbTeodolit)
OF
AbortAE :
mainState := GlownyMS;
|
DrukujAE :
mainState := DrukujMS;
|
ZakonczAE :
(*
Zapisz(polaryzacjaOK, synResult);
H_Files.KopiujWszystkiePliki(SciezkaOpisuPomiaru);
*)
mainState := GlownyMS;
END (* case AnalizaEP *);
|
DrukujMS :
LoadData( dataOk );
Druk(Zestaw);
GoHomeDir;
mainState := AnalizaMS;
|
KoniecProgMS :
Tune.TurnOffVOR_ILS(Tune.AReceiver);
Tune.TurnOffVOR_ILS(Tune.BReceiver);
EXIT;
END (* case mainState *);
END (* loop *);
Terminate(Normal);
END AH.