-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.cpp
2580 lines (2511 loc) · 101 KB
/
MainWindow.cpp
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*********************************************************************************
* project Tracker statuses *
* *
* file MainWindow.cpp *
* author Dmitriy Bassamykin *
* date 12.12.2019 *
* copyright The MIT License (MIT). Copyright (c) 2019-2020 Dmitriy Bassamykin *
* *
*********************************************************************************/
// -*- C++ -*-
//
// generated by wxGlade 0.9.4 on Thu Dec 12 10:46:42 2019
//
// Example for compiling a single file project under Linux using g++:
// g++ MyApp.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp
//
// Example for compiling a multi file project under Linux using g++:
// g++ main.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp Dialog1.cpp Frame1.cpp
//
#include <wx/wx.h>
#include "MainWindow.h"
// begin wxGlade: ::extracode
// end wxGlade
enum {
spinNavtelecomId = wxID_HIGHEST,
spinNavtelecomEventCodeId,
spinNavisetId,
spinArnaviGsmId,
spinArnaviNavId,
spinNavtelecomModulesSt2Id,
};
typedef struct _naviset_st {
unsigned char pwrExt : 1;
unsigned char move : 1;
unsigned char security : 1;
unsigned char gsm : 2;
unsigned char gprs : 1;
unsigned char gps : 2;
} naviset_st_t;
typedef struct _navtelecom_st {
unsigned char gsm : 1;
unsigned char usb : 1;
unsigned char hiResGps : 1;
unsigned char timeSync : 1;
unsigned char sim : 1;
unsigned char gsmReg : 1;
unsigned char rouming : 1;
unsigned char generator : 1;
} navtelecom_st_t;
typedef struct _navtelecom_modules_st2 {
unsigned char gsmJamming : 2;
unsigned char gpsJamming : 1;
unsigned char btStatus : 1;
unsigned char btConfig : 1;
unsigned char pwrSave : 1;
unsigned char posAvg : 1;
unsigned char evacuation : 1;
} navtelecom_modules_st2_t;
MainWindow::MainWindow(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):
wxFrame(parent, id, title, pos, size, /*wxDEFAULT_FRAME_STYLE*/ wxSYSTEM_MENU | wxRESIZE_BORDER | wxMINIMIZE_BOX | wxCLOSE_BOX | wxCAPTION | wxCLIP_CHILDREN)
{
// begin wxGlade: MainWindow::MainWindow
SetSize(wxSize(270, 300));
tabTrackers = new wxNotebook(this, wxID_ANY);
tabTrackers_Arnavi = new wxPanel(tabTrackers, wxID_ANY);
tabNaviset = new wxPanel(tabTrackers, wxID_ANY);
tabNavtelecom = new wxPanel(tabTrackers, wxID_ANY);
tabNavtelecomParams = new wxNotebook(tabNavtelecom, wxID_ANY);
tabNavtelecomParams_event_code = new wxPanel(tabNavtelecomParams, wxID_ANY);
tabNavtelecomParams_modules_st2 = new wxPanel(tabNavtelecomParams, wxID_ANY);
tabNavtelecomParams_modules_st = new wxPanel(tabNavtelecomParams, wxID_ANY);
spinNavtelecomStatus = new wxSpinCtrl(tabNavtelecomParams_modules_st, spinNavtelecomId, wxT("0"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 255);
lblNavtelecomGsm = new wxStaticText(tabNavtelecomParams_modules_st, wxID_ANY, wxEmptyString);
lblNavtelecomUsb = new wxStaticText(tabNavtelecomParams_modules_st, wxID_ANY, wxEmptyString);
lblNavtelecomHiResGps = new wxStaticText(tabNavtelecomParams_modules_st, wxID_ANY, wxEmptyString);
lblNavtelecomTimeSync = new wxStaticText(tabNavtelecomParams_modules_st, wxID_ANY, wxEmptyString);
lblNavtelecomSim = new wxStaticText(tabNavtelecomParams_modules_st, wxID_ANY, wxEmptyString);
lblNavtelecomGsmReg = new wxStaticText(tabNavtelecomParams_modules_st, wxID_ANY, wxEmptyString);
lblNavtelecomRouming = new wxStaticText(tabNavtelecomParams_modules_st, wxID_ANY, wxEmptyString);
lblNavtelecomGenerator = new wxStaticText(tabNavtelecomParams_modules_st, wxID_ANY, wxEmptyString);
spinNavtelecomModulesSt2 = new wxSpinCtrl(tabNavtelecomParams_modules_st2, spinNavtelecomModulesSt2Id, wxT("0"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 255);
lblNavtelecomGsmJamming = new wxStaticText(tabNavtelecomParams_modules_st2, wxID_ANY, wxEmptyString);
lblNavtelecomGpsJamming = new wxStaticText(tabNavtelecomParams_modules_st2, wxID_ANY, wxEmptyString);
lblNavtelecomBluetoothStatus = new wxStaticText(tabNavtelecomParams_modules_st2, wxID_ANY, wxEmptyString);
lblNavtelecomBluetoothConfig = new wxStaticText(tabNavtelecomParams_modules_st2, wxID_ANY, wxEmptyString);
lblNavtelecomPowerSave = new wxStaticText(tabNavtelecomParams_modules_st2, wxID_ANY, wxEmptyString);
lblNavtelecomPosAveraging = new wxStaticText(tabNavtelecomParams_modules_st2, wxID_ANY, wxEmptyString);
lblNavtelecomEvacuation = new wxStaticText(tabNavtelecomParams_modules_st2, wxID_ANY, wxEmptyString);
spinNavtelecomEventCode = new wxSpinCtrl(tabNavtelecomParams_event_code, spinNavtelecomEventCodeId, wxT("0"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 65535);
lblNavtelecomEventCode = new wxStaticText(tabNavtelecomParams_event_code, wxID_ANY, wxEmptyString);
spinNavisetStatus = new wxSpinCtrl(tabNaviset, spinNavisetId, wxT("0"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 255);
lblNavisetPwrExt = new wxStaticText(tabNaviset, wxID_ANY, wxEmptyString);
lblNavisetMove = new wxStaticText(tabNaviset, wxID_ANY, wxEmptyString);
lblNavisetSecurity = new wxStaticText(tabNaviset, wxID_ANY, wxEmptyString);
lblNavisetGsm = new wxStaticText(tabNaviset, wxID_ANY, wxEmptyString);
lblNavisetGprs = new wxStaticText(tabNaviset, wxID_ANY, wxEmptyString);
lblNavisetGps = new wxStaticText(tabNaviset, wxID_ANY, wxEmptyString);
spinArnaviGsm = new wxSpinCtrl(tabTrackers_Arnavi, spinArnaviGsmId, wxT("0"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 4);
lblArnavi5Gsm = new wxStaticText(tabTrackers_Arnavi, wxID_ANY, wxEmptyString);
lblArnaviOtherGsm = new wxStaticText(tabTrackers_Arnavi, wxID_ANY, wxEmptyString);
spinArnaviNav = new wxSpinCtrl(tabTrackers_Arnavi, spinArnaviNavId, wxT("0"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 3);
lblArnavi5Nav = new wxStaticText(tabTrackers_Arnavi, wxID_ANY, wxEmptyString);
lblArnaviOtherNav = new wxStaticText(tabTrackers_Arnavi, wxID_ANY, wxEmptyString);
set_properties();
do_layout();
// end wxGlade
updateNavisetStatus();
updateNavtelecomStatus();
updateNavtelecomModulesStatus2();
updateNavtelecomEventCode();
updateArnaviStatus();
}
void MainWindow::set_properties()
{
// begin wxGlade: MainWindow::set_properties
SetTitle(wxT("Ñòàòóñû òðåêåðîâ"));
spinNavtelecomStatus->SetToolTip(wxT("Çíà÷åíèå ïàðàìåòðà äëÿ ðàñøèôðîâêè (â ñèñòåìå Wialon ïàðàìåòð modules_st)"));
spinNavtelecomModulesSt2->SetToolTip(wxT("Çíà÷åíèå ïàðàìåòðà äëÿ ðàñøèôðîâêè (â ñèñòåìå Wialon ïàðàìåòð modules_st2)\n"));
spinNavtelecomEventCode->SetToolTip(wxT("Çíà÷åíèå ïàðàìåòðà äëÿ ðàñøèôðîâêè (â ñèñòåìå Wialon ïàðàìåòð event_code)"));
lblNavtelecomEventCode->Wrap(260);
spinNavisetStatus->SetToolTip(wxT("Çíà÷åíèå ïàðàìåòðà äëÿ ðàñøèôðîâêè (â ñèñòåìå Wialon ïàðàìåòð status)\n"));
spinArnaviGsm->SetToolTip(wxT("Çíà÷åíèå ïàðàìåòðà äëÿ ðàñøèôðîâêè (â ñèñòåìå Wialon ïàðàìåòð gsm_st)\n"));
spinArnaviNav->SetToolTip(wxT("Çíà÷åíèå ïàðàìåòðà äëÿ ðàñøèôðîâêè (â ñèñòåìå Wialon ïàðàìåòð nav_st)\n"));
// end wxGlade
SetSizeHints(270, 300, 280, 350);
wxIcon icon(wxICON(IDI_ICON1));
SetIcon(icon);
}
void MainWindow::do_layout()
{
// begin wxGlade: MainWindow::do_layout
wxBoxSizer* sizer_1 = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* sizer_6 = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* sizer_12 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_11 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_10 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_9 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_8 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_7 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_4 = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* sizer_5 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_2 = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* sizer_15 = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* sizer_13 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_16 = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* sizer_17 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_14 = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* sizer_3 = new wxBoxSizer(wxHORIZONTAL);
wxStaticText* label_1 = new wxStaticText(tabNavtelecomParams_modules_st, wxID_ANY, wxT("modules_st"));
label_1->SetMinSize(wxSize(70, 16));
sizer_3->Add(label_1, 0, 0, 0);
sizer_3->Add(spinNavtelecomStatus, 1, 0, 0);
sizer_14->Add(sizer_3, 1, wxEXPAND, 0);
sizer_14->Add(lblNavtelecomGsm, 0, wxEXPAND, 0);
sizer_14->Add(lblNavtelecomUsb, 0, wxEXPAND, 0);
sizer_14->Add(lblNavtelecomHiResGps, 0, wxEXPAND, 0);
sizer_14->Add(lblNavtelecomTimeSync, 0, wxEXPAND, 0);
sizer_14->Add(lblNavtelecomSim, 0, wxEXPAND, 0);
sizer_14->Add(lblNavtelecomGsmReg, 0, wxEXPAND, 0);
sizer_14->Add(lblNavtelecomRouming, 0, wxEXPAND, 0);
sizer_14->Add(lblNavtelecomGenerator, 0, wxEXPAND, 0);
sizer_14->Add(20, 10, 14, 0, 0);
tabNavtelecomParams_modules_st->SetSizer(sizer_14);
wxStaticText* label_10 = new wxStaticText(tabNavtelecomParams_modules_st2, wxID_ANY, wxT("modules_st2"));
label_10->SetMinSize(wxSize(70, 16));
sizer_17->Add(label_10, 0, 0, 0);
sizer_17->Add(spinNavtelecomModulesSt2, 1, 0, 0);
sizer_16->Add(sizer_17, 1, wxEXPAND, 0);
sizer_16->Add(lblNavtelecomGsmJamming, 0, 0, 0);
sizer_16->Add(lblNavtelecomGpsJamming, 0, 0, 0);
sizer_16->Add(lblNavtelecomBluetoothStatus, 0, 0, 0);
sizer_16->Add(lblNavtelecomBluetoothConfig, 0, 0, 0);
sizer_16->Add(lblNavtelecomPowerSave, 0, 0, 0);
sizer_16->Add(lblNavtelecomPosAveraging, 0, 0, 0);
sizer_16->Add(lblNavtelecomEvacuation, 0, 0, 0);
sizer_16->Add(20, 20, 15, 0, 0);
tabNavtelecomParams_modules_st2->SetSizer(sizer_16);
wxStaticText* label_9 = new wxStaticText(tabNavtelecomParams_event_code, wxID_ANY, wxT("event_code"));
label_9->SetMinSize(wxSize(70, 16));
sizer_13->Add(label_9, 0, 0, 0);
sizer_13->Add(spinNavtelecomEventCode, 1, 0, 0);
sizer_15->Add(sizer_13, 1, wxEXPAND, 0);
sizer_15->Add(lblNavtelecomEventCode, 10, wxEXPAND, 0);
tabNavtelecomParams_event_code->SetSizer(sizer_15);
tabNavtelecomParams->AddPage(tabNavtelecomParams_modules_st, wxT("modules_st"));
tabNavtelecomParams->AddPage(tabNavtelecomParams_modules_st2, wxT("modules_st2"));
tabNavtelecomParams->AddPage(tabNavtelecomParams_event_code, wxT("event_code"));
sizer_2->Add(tabNavtelecomParams, 1, wxEXPAND, 0);
tabNavtelecom->SetSizer(sizer_2);
wxStaticText* label_2 = new wxStaticText(tabNaviset, wxID_ANY, wxT("status"));
label_2->SetMinSize(wxSize(70, 16));
sizer_5->Add(label_2, 0, 0, 0);
sizer_5->Add(spinNavisetStatus, 1, 0, 0);
sizer_4->Add(sizer_5, 1, 0, 0);
sizer_4->Add(lblNavisetPwrExt, 0, wxEXPAND, 0);
sizer_4->Add(lblNavisetMove, 0, wxEXPAND, 0);
sizer_4->Add(lblNavisetSecurity, 0, wxEXPAND, 0);
sizer_4->Add(lblNavisetGsm, 0, wxEXPAND, 0);
sizer_4->Add(lblNavisetGprs, 0, wxEXPAND, 0);
sizer_4->Add(lblNavisetGps, 0, wxEXPAND, 0);
sizer_4->Add(20, 20, 14, wxEXPAND, 0);
tabNaviset->SetSizer(sizer_4);
wxStaticText* label_3 = new wxStaticText(tabTrackers_Arnavi, wxID_ANY, wxT("gsm_st"));
label_3->SetMinSize(wxSize(70, 16));
sizer_7->Add(label_3, 0, 0, 0);
sizer_7->Add(spinArnaviGsm, 1, 0, 0);
sizer_6->Add(sizer_7, 1, wxEXPAND, 0);
wxStaticText* label_4 = new wxStaticText(tabTrackers_Arnavi, wxID_ANY, wxT("Arnavi 5"));
label_4->SetMinSize(wxSize(70, 16));
sizer_8->Add(label_4, 0, 0, 0);
sizer_8->Add(lblArnavi5Gsm, 1, 0, 0);
sizer_6->Add(sizer_8, 1, wxEXPAND, 0);
wxStaticText* label_5 = new wxStaticText(tabTrackers_Arnavi, wxID_ANY, wxT("Äðóãèå"));
label_5->SetMinSize(wxSize(70, 16));
sizer_9->Add(label_5, 0, 0, 0);
sizer_9->Add(lblArnaviOtherGsm, 1, 0, 0);
sizer_6->Add(sizer_9, 1, wxEXPAND, 0);
sizer_6->Add(20, 20, 3, 0, 0);
wxStaticText* label_6 = new wxStaticText(tabTrackers_Arnavi, wxID_ANY, wxT("nav_st"));
label_6->SetMinSize(wxSize(70, 16));
sizer_10->Add(label_6, 0, 0, 0);
sizer_10->Add(spinArnaviNav, 1, 0, 0);
sizer_6->Add(sizer_10, 1, wxEXPAND, 0);
wxStaticText* label_7 = new wxStaticText(tabTrackers_Arnavi, wxID_ANY, wxT("Arnavi 5"));
label_7->SetMinSize(wxSize(70, 16));
sizer_11->Add(label_7, 0, 0, 0);
sizer_11->Add(lblArnavi5Nav, 1, 0, 0);
sizer_6->Add(sizer_11, 1, wxEXPAND, 0);
wxStaticText* label_8 = new wxStaticText(tabTrackers_Arnavi, wxID_ANY, wxT("Äðóãèå"));
label_8->SetMinSize(wxSize(70, 31));
sizer_12->Add(label_8, 0, 0, 0);
sizer_12->Add(lblArnaviOtherNav, 1, 0, 0);
sizer_6->Add(sizer_12, 1, wxEXPAND, 0);
sizer_6->Add(20, 20, 7, 0, 0);
tabTrackers_Arnavi->SetSizer(sizer_6);
tabTrackers->AddPage(tabNavtelecom, wxT("Navtelecom"));
tabTrackers->AddPage(tabNaviset, wxT("Naviset"));
tabTrackers->AddPage(tabTrackers_Arnavi, wxT("Arnavi"));
sizer_1->Add(tabTrackers, 1, wxEXPAND, 0);
SetSizer(sizer_1);
Layout();
// end wxGlade
}
void MainWindow::updateNavisetStatus(void)
{
uint8_t status = static_cast<uint8_t>(spinNavisetStatus->GetValue() & 0xff);
naviset_st_t* status_bits = reinterpret_cast<naviset_st_t*>(&status);
lblNavisetGsm->SetForegroundColour(wxNullColour);
lblNavisetGps->SetForegroundColour(wxNullColour);
lblNavisetPwrExt->SetLabel((status_bits->pwrExt == 0) ?
wxT("Âíåøíåå íàïðÿæåíèå â íîðìå") :
wxT("Âíåøíåå íàïðÿæåíèå íèæå íîðìû"));
lblNavisetPwrExt->SetForegroundColour(status_bits->pwrExt == 0 ? wxNullColour : *wxRED);
lblNavisetMove->SetLabel((status_bits->move == 0) ?
wxT("Îáúåêò ñòîèò") :
wxT("Îáúåêò â äâèæåíèè"));
lblNavisetSecurity->SetLabel(status_bits->security == 0 ?
wxT("Ñíÿò ñ îõðàíû") :
wxT("Ñòîèò íà îõðàíå"));
switch (status_bits->gsm)
{
case 0:
lblNavisetGsm->SetLabel(wxT("Íåò àêòèâíîé ÑÈÌ êàðòû"));
break;
case 1:
lblNavisetGsm->SetLabel(wxT("Ðàáîòàåò ïåðâàÿ ÑÈÌ êàðòà"));
break;
case 2:
lblNavisetGsm->SetLabel(wxT("Ðàáîòàåò âòîðàÿ ÑÈÌ êàðòà"));
break;
case 3:
lblNavisetGsm->SetLabel(wxT("Ðàáîòàþò ÎÁÅ ÑÈÌ êàðòû!!!"));
lblNavisetGsm->SetForegroundColour(*wxRED);
break;
default:
break;
}
lblNavisetGprs->SetLabel(status_bits->gprs == 0 ?
wxT("GPRS ñîåäèíåíèå óñòàíîâëåíî") :
wxT("Íåò GPRS ñîåäèíåíèÿ"));
switch (status_bits->gps)
{
case 0:
lblNavisetGps->SetLabel(wxT("GPS àíòåííà ïîäêëþ÷åíà"));
break;
case 1:
lblNavisetGps->SetLabel(wxT("Íåò ñâÿçè ñ GPS ìîäóëåì"));
lblNavisetGps->SetForegroundColour(*wxRED);
break;
case 2:
lblNavisetGps->SetLabel(wxT("Îòñóòñòâóåò GPS àíòåííà"));
lblNavisetGps->SetForegroundColour(*wxRED);
break;
case 3:
lblNavisetGps->SetLabel(wxT("ÊÇ GPS àíòåííû"));
lblNavisetGps->SetForegroundColour(*wxRED);
break;
default:
break;
}
}
void MainWindow::updateNavtelecomStatus(void)
{
uint8_t status = static_cast<uint8_t>(spinNavtelecomStatus->GetValue() & 0xff);
navtelecom_st_t* status_bits = reinterpret_cast<navtelecom_st_t*>(&status);
lblNavtelecomGsm->SetLabel(status_bits->gsm == 0 ?
wxT("GSM âûêëþ÷åí") :
wxT("GSM âêëþ÷åí"));
lblNavtelecomUsb->SetLabel(status_bits->usb == 0 ?
wxT("USB îòêëþ÷åí") :
wxT("USB âêëþ÷åí"));
lblNavtelecomHiResGps->SetLabel(status_bits->hiResGps == 0 ?
wxT("Âûñîêîòî÷íûé ïðèåìíèê îòêëþ÷åí") :
wxT("Âûñîêîòî÷íûé ïðèåìíèê âêëþ÷åí"));
lblNavtelecomTimeSync->SetLabel(status_bits->timeSync == 0 ?
wxT("×àñû ñèíõðîíèçèðîâàíû ïî GPS") :
wxT("×àñû íå ñèíõðîíèçèðîâàíû ïî GPS"));
lblNavtelecomSim->SetLabel(status_bits->sim == 0 ?
wxT("Ðàáîòàåò ïåðâàÿ ÑÈÌ êàðòà") :
wxT("Ðàáîòàåò âòîðàÿ ÑÈÌ êàðòà"));
lblNavtelecomGsmReg->SetLabel(status_bits->gsmReg == 0 ?
wxT("Íåò ðåãèñòðàöèè â ñîòîâîé ñåòè") :
wxT("Ðåãèñòðàöèÿ â ñîòîâîé ñåòè"));
lblNavtelecomRouming->SetLabel(status_bits->rouming == 0 ?
wxT("Äîìàøíÿÿ ñåòü") :
wxT("Ðîóìèíã"));
lblNavtelecomGenerator->SetLabel(status_bits->generator == 0 ?
wxT("Äâèãàòåëü (ãåíåðàòîð) âûêëþ÷åí") :
wxT("Äâèãàòåëü (ãåíåðàòîð) çàïóùåí"));
}
void MainWindow::updateNavtelecomModulesStatus2(void)
{
uint8_t code = static_cast<uint8_t>(spinNavtelecomModulesSt2->GetValue() & 0xff);
navtelecom_modules_st2_t *status_bits = reinterpret_cast<navtelecom_modules_st2_t*>(&code);
switch (status_bits->gsmJamming)
{
case 0:
lblNavtelecomGsmJamming->SetLabel(wxT("Íåò ãëóøåíèÿ GSM"));
break;
case 1:
lblNavtelecomGsmJamming->SetLabel(wxT("Îáíàðóæåíî ãëóøåíèå GSM"));
break;
case 2:
lblNavtelecomGsmJamming->SetLabel(wxT("Îáíàðóæåíû ïðîìûøëåííûå ïîìåõè"));
break;
default:
lblNavtelecomGsmJamming->SetLabel(wxT("-"));
break;
}
lblNavtelecomGpsJamming->SetLabel(status_bits->gpsJamming == 0 ?
wxT("Íåò ãëóøåíèÿ GPS") :
wxT("Îáíàðóæåíî ãëóøåíèå GPS"));
lblNavtelecomBluetoothStatus->SetLabel(status_bits->btStatus == 0 ?
wxT("Bluetooth âûêëþ÷åí") :
wxT("Bluetooth âêëþ÷åí"));
lblNavtelecomBluetoothConfig->SetLabel(status_bits->btConfig == 0 ?
wxT("Êîíôèãóðàòîð ïî Bluetooth íå ïîäêëþ÷åí") :
wxT("Êîíôèãóðàòîð ïî Bluetooth ïîäêëþ÷åí"));
lblNavtelecomPowerSave->SetLabel(status_bits->pwrSave == 0 ?
wxT("Øòàòíûé ðåæèì ðàáîòû") :
wxT("Ýíåðãîñáåðåæåíèå"));
lblNavtelecomPosAveraging->SetLabel(status_bits->posAvg == 0 ?
wxT("Êîîðäèíàòû íå óñðåäíÿþòñÿ") :
wxT("Êîîðäèíàòû óñðåäíÿþòñÿ"));
lblNavtelecomEvacuation->SetLabel(status_bits->evacuation == 0 ?
wxT("Ýâàêóàöèÿ íå çàôèêñèðîâàíà") :
wxT("Ýâàêóàöèÿ çàôèêñèðîâàíà"));
}
void MainWindow::updateNavtelecomEventCode(void)
{
uint16_t code = static_cast<uint16_t>(spinNavtelecomEventCode->GetValue() & 0xffff);
switch (code) {
case 4096U:
lblNavtelecomEventCode->SetLabel(wxT("Ñíÿòèå ñ îõðàíû ïî ëèíèè ñòàòóñà STS"));
break;
case 4097U:
lblNavtelecomEventCode->SetLabel(wxT("Ïîñòàíîâêà íà îõðàíó ïî ëèíèè ñòàòóñà STS ïî ïðîôèëþ ¹1"));
break;
case 4098U:
lblNavtelecomEventCode->SetLabel(wxT("Ïîñòàíîâêà íà îõðàíó ïî ëèíèè ñòàòóñà STS ïî ïðîôèëþ ¹2"));
break;
case 4099U:
lblNavtelecomEventCode->SetLabel(wxT("Ïîñòàíîâêà íà îõðàíó ïî ëèíèè ñòàòóñà STS ïî ïðîôèëþ ¹3"));
break;
case 4106U:
lblNavtelecomEventCode->SetLabel(wxT("Ïåðåõîä â òåñòîâûé ðåæèì ïî ëèíèè ñòàòóñà STS"));
break;
case 4353U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹1 àêòèâèðîâàí"));
break;
case 4356U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹1 â íîðìå"));
break;
case 4369U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹2 àêòèâèðîâàí"));
break;
case 4372U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹2 â íîðìå"));
break;
case 4385U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹3 àêòèâèðîâàí"));
break;
case 4388U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹3 â íîðìå"));
break;
case 4401U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹4 àêòèâèðîâàí"));
break;
case 4404U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹4 â íîðìå"));
break;
case 4417U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹5 àêòèâèðîâàí"));
break;
case 4418U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹5 êîðîòêîçàìêíóò"));
break;
case 4419U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹5 îáîðâàí"));
break;
case 4420U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹5 â íîðìå"));
break;
case 4421U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹5 ïðåäâàðèòåëüíî àêòèâèðîâàí"));
break;
case 4433U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹6 àêòèâèðîâàí"));
break;
case 4434U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹6 êîðîòêîçàìêíóò"));
break;
case 4435U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹6 îáîðâàí"));
break;
case 4436U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹6 â íîðìå"));
break;
case 4437U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä ¹6 ïðåäâàðèòåëüíî àêòèâèðîâàí"));
break;
case 4513U:
lblNavtelecomEventCode->SetLabel(wxT("Ñðàáîòàë äàò÷èê ñëàáîãî óäàðà"));
break;
case 4515U:
lblNavtelecomEventCode->SetLabel(wxT("Îøèáêà ðàáîòû ñ àêñåëåðîìåòðîì"));
break;
case 4516U:
lblNavtelecomEventCode->SetLabel(wxT("Äàò÷èê ñëàáîãî óäàðà â íîðìå"));
break;
case 4529U:
lblNavtelecomEventCode->SetLabel(wxT("Ñðàáîòàë äàò÷èê ñèëüíîãî óäàðà"));
break;
case 4532U:
lblNavtelecomEventCode->SetLabel(wxT("Äàò÷èê ñèëüíîãî óäàðà â íîðìå"));
break;
case 4545U:
lblNavtelecomEventCode->SetLabel(wxT("Ñðàáîòàë äàò÷èê ïåðåìåùåíèÿ"));
break;
case 4548U:
lblNavtelecomEventCode->SetLabel(wxT("Äàò÷èê ïåðåìåùåíèÿ â íîðìå"));
break;
case 4561U:
lblNavtelecomEventCode->SetLabel(wxT("Ñðàáîòàë äàò÷èê íàêëîíà"));
break;
case 4564U:
lblNavtelecomEventCode->SetLabel(wxT("Äàò÷èê íàêëîíà â íîðìå"));
break;
case 4628U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä I7 àêòèâèðîâàí"));
break;
case 4629U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä I7 êîðîòêîçàìêíóò"));
break;
case 4630U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä I7 îáîðâàí"));
break;
case 4631U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä I7 â íîðìå"));
break;
case 4644U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä I8 àêòèâèðîâàí"));
break;
case 4645U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä I8 êîðîòêîçàìêíóò"));
break;
case 4646U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä I8 îáîðâàí"));
break;
case 4647U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä I8 â íîðìå"));
break;
case 4656U:
lblNavtelecomEventCode->SetLabel(wxT("Íàïðÿæåíèå íà îñíîâíîì àêêóìóëÿòîðå ìåíüøå íèæíåãî ïîðîãà"));
break;
case 4657U:
lblNavtelecomEventCode->SetLabel(wxT("Íàïðÿæåíèå íà îñíîâíîì àêêóìóëÿòîðå âîññòàíîâèëîñü"));
break;
case 4672U:
lblNavtelecomEventCode->SetLabel(wxT("Íàïðÿæåíèå íà ðåçåðâíîì àêêóìóëÿòîðå ìåíüøå íèæíåãî ïîðîãà"));
break;
case 4673U:
lblNavtelecomEventCode->SetLabel(wxT("Íàïðÿæåíèå íà ðåçåðâíîì àêêóìóëÿòîðå âîññòàíîâèëîñü"));
break;
case 4688U:
lblNavtelecomEventCode->SetLabel(wxT("Äàò÷èê ðàáîòû äâèãàòåëÿ: Âêëþ÷åíî çàæèãàíèå (ïî íàïðÿæåíèþ ïèòàíèÿ)"));
break;
case 4689U:
lblNavtelecomEventCode->SetLabel(wxT("Äàò÷èê ðàáîòû äâèãàòåëÿ: Âûêëþ÷åíî çàæèãàíèå (ïî íàïðÿæåíèþ ïèòàíèÿ)"));
break;
case 4880U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹1 ïîíèçèëàñü íèæå íèæíåãî ïîðîãà"));
break;
case 4882U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹1 ïîâûñèëàñü âûøå âåðõíåãî ïîðîãà"));
break;
case 4883U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹1 âåðíóëàñü â íîðìó"));
break;
case 4884U:
lblNavtelecomEventCode->SetLabel(wxT("Âíåøíèé òåìïåðàòóðíûé äàò÷èê ¹1 îáîðâàí"));
break;
case 4896U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹2 ïîíèçèëàñü íèæå íèæíåãî ïîðîãà"));
break;
case 4898U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹2 ïîâûñèëàñü âûøå âåðõíåãî ïîðîãà"));
break;
case 4899U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹2 âåðíóëàñü â íîðìó"));
break;
case 4900U:
lblNavtelecomEventCode->SetLabel(wxT("Âíåøíèé òåìïåðàòóðíûé äàò÷èê ¹2 îáîðâàí"));
break;
case 4912U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹3 ïîíèçèëàñü íèæå íèæíåãî ïîðîãà"));
break;
case 4914U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹3 ïîâûñèëàñü âûøå âåðõíåãî ïîðîãà"));
break;
case 4915U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹3 âåðíóëàñü â íîðìó"));
break;
case 4916U:
lblNavtelecomEventCode->SetLabel(wxT("Âíåøíèé òåìïåðàòóðíûé äàò÷èê ¹3 îáîðâàí"));
break;
case 4928U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹4 ïîíèçèëàñü íèæå íèæíåãî ïîðîãà"));
break;
case 4930U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹4 ïîâûñèëàñü âûøå âåðõíåãî ïîðîãà"));
break;
case 4931U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹4 âåðíóëàñü â íîðìó"));
break;
case 4932U:
lblNavtelecomEventCode->SetLabel(wxT("Âíåøíèé òåìïåðàòóðíûé äàò÷èê ¹4 îáîðâàí"));
break;
case 4944U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹5 ïîíèçèëàñü íèæå íèæíåãî ïîðîãà"));
break;
case 4946U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹5 ïîâûñèëàñü âûøå âåðõíåãî ïîðîãà"));
break;
case 4947U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹5 âåðíóëàñü â íîðìó"));
break;
case 4948U:
lblNavtelecomEventCode->SetLabel(wxT("Âíåøíèé òåìïåðàòóðíûé äàò÷èê ¹5 îáîðâàí"));
break;
case 4960U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹6 ïîíèçèëàñü íèæå íèæíåãî ïîðîãà"));
break;
case 4962U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹6 ïîâûñèëàñü âûøå âåðõíåãî ïîðîãà"));
break;
case 4963U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹6 âåðíóëàñü â íîðìó"));
break;
case 4964U:
lblNavtelecomEventCode->SetLabel(wxT("Âíåøíèé òåìïåðàòóðíûé äàò÷èê ¹6 îáîðâàí"));
break;
case 4976U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹7 ïîíèçèëàñü íèæå íèæíåãî ïîðîãà"));
break;
case 4978U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹7 ïîâûñèëàñü âûøå âåðõíåãî ïîðîãà"));
break;
case 4979U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹7 âåðíóëàñü â íîðìó"));
break;
case 4980U:
lblNavtelecomEventCode->SetLabel(wxT("Âíåøíèé òåìïåðàòóðíûé äàò÷èê ¹7 îáîðâàí"));
break;
case 4992U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹8 ïîíèçèëàñü íèæå íèæíåãî ïîðîãà"));
break;
case 4994U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹8 ïîâûñèëàñü âûøå âåðõíåãî ïîðîãà"));
break;
case 4995U:
lblNavtelecomEventCode->SetLabel(wxT("Òåìïåðàòóðà íà âíåøíåì äàò÷èêå ¹8 âåðíóëàñü â íîðìó"));
break;
case 4996U:
lblNavtelecomEventCode->SetLabel(wxT("Âíåøíèé òåìïåðàòóðíûé äàò÷èê ¹8 îáîðâàí"));
break;
case 5173U:
lblNavtelecomEventCode->SetLabel(wxT("Àâòîìàòè÷åñêîå âêëþ÷åíèå âûõîäà Î1"));
break;
case 5172U:
lblNavtelecomEventCode->SetLabel(wxT("Àâòîìàòè÷åñêîå âûêëþ÷åíèå âûõîäà Î1"));
break;
case 5153U:
lblNavtelecomEventCode->SetLabel(wxT("Àâòîìàòè÷åñêîå âêëþ÷åíèå âûõîäà Î2"));
break;
case 5152U:
lblNavtelecomEventCode->SetLabel(wxT("Àâòîìàòè÷åñêîå âûêëþ÷åíèå âûõîäà Î2"));
break;
case 5169U:
lblNavtelecomEventCode->SetLabel(wxT("Àâòîìàòè÷åñêîå âêëþ÷åíèå âûõîäà Î3"));
break;
case 5168U:
lblNavtelecomEventCode->SetLabel(wxT("Àâòîìàòè÷åñêîå âûêëþ÷åíèå âûõîäà Î3"));
break;
case 5185U:
lblNavtelecomEventCode->SetLabel(wxT("Àâòîìàòè÷åñêîå âêëþ÷åíèå âûõîäà Î4"));
break;
case 5184U:
lblNavtelecomEventCode->SetLabel(wxT("Àâòîìàòè÷åñêîå âûêëþ÷åíèå âûõîäà Î4"));
break;
case 5376U:
lblNavtelecomEventCode->SetLabel(wxT("Âêëþ÷åíèå óñòðîéñòâà"));
break;
case 5377U:
lblNavtelecomEventCode->SetLabel(wxT("Îòïðàâêà SMS íà çàäàííûé íîìåð äëÿ ñèíõðîíèçàöèè ÷àñîâ"));
break;
case 5378U:
lblNavtelecomEventCode->SetLabel(wxT("Âõîä â ðàáî÷èé ðåæèì"));
break;
case 5379U:
lblNavtelecomEventCode->SetLabel(wxT("Èçìåíèëîñü ñîñòîÿíèå äàò÷èêà ãëóøåíèÿ"));
break;
case 5380U:
lblNavtelecomEventCode->SetLabel(wxT("Òðåâîãà"));
break;
case 5393U:
lblNavtelecomEventCode->SetLabel(wxT("Êîìàíäà ñèíõðîíèçàöèÿ äàííûõ ñ ñåðâåðîì 1"));
break;
case 5394U:
lblNavtelecomEventCode->SetLabel(wxT("Êîìàíäà ñèíõðîíèçàöèÿ äàííûõ ñ ñåðâåðîì 2"));
break;
case 5395U:
lblNavtelecomEventCode->SetLabel(wxT("Êîìàíäà ñèíõðîíèçàöèÿ äàííûõ ñ ñåðâåðîì 3"));
break;
case 5633U:
lblNavtelecomEventCode->SetLabel(wxT("Òàéìåð ñèãíàëà æèçíè ïî SMS"));
break;
case 5634U:
lblNavtelecomEventCode->SetLabel(wxT("Òàéìåð çàïèñè òåëåìåòðèè â ïàìÿòü â îáû÷íîì ðåæèìå"));
break;
case 5635U:
lblNavtelecomEventCode->SetLabel(wxT("Òàéìåð çàïèñè òåëåìåòðèè â ïàìÿòü â ðåæèìå îõðàíû ïî ïðîôèëþ ¹1"));
break;
case 5636U:
lblNavtelecomEventCode->SetLabel(wxT("Òàéìåð îòïðàâêè íàêîïëåííûõ â ÷åðíîì ÿùèêå òåëåìåðè÷åñêèõ îòñ÷¸òîâ íà GPRS ñåðâåð"));
break;
case 5889U:
lblNavtelecomEventCode->SetLabel(wxT("Âêëþ÷åíèå GPS-ìîäóëÿ"));
break;
case 5890U:
lblNavtelecomEventCode->SetLabel(wxT("Âûêëþ÷åíèå GPS-ìîäóëÿ"));
break;
case 5891U:
lblNavtelecomEventCode->SetLabel(wxT("Ïåðâàÿ âàëèäíàÿ íàâèãàöèÿ ïîñëå âêëþ÷åíèÿ"));
break;
case 5892U:
lblNavtelecomEventCode->SetLabel(wxT("Ïðîéäåí çàäàííûé ïóòü"));
break;
case 5893U:
lblNavtelecomEventCode->SetLabel(wxT("Êóðñ èçìåí¸í íà óãîë, áîëüøå çàäàííîãî"));
break;
case 5894U:
lblNavtelecomEventCode->SetLabel(wxT("Ñêîðîñòü ìåíüøå ìèíèìàëüíî çàäàííîé"));
break;
case 5895U:
lblNavtelecomEventCode->SetLabel(wxT("Ñêîðîñòü áîëüøå ìàêñèìàëüíî çàäàííîé"));
break;
case 5896U:
lblNavtelecomEventCode->SetLabel(wxT("Êóðñ ñòàáèëèçèðîâàí"));
break;
case 5897U:
lblNavtelecomEventCode->SetLabel(wxT("Îáúåêò òðîíóëñÿ ñ ìåñòà"));
break;
case 5898U:
lblNavtelecomEventCode->SetLabel(wxT("Îáúåêò îñòàíîâèëñÿ"));
break;
case 5899U:
lblNavtelecomEventCode->SetLabel(wxT("Òàéìåð çàïèñè òåëåìåòðèè îò ïîñëåäíåãî òåêóùåãî ñîáûòèÿ"));
break;
case 5900U:
lblNavtelecomEventCode->SetLabel(wxT("Ïðîèñõîäèò ýâàêóàöèÿ"));
break;
case 5901U:
lblNavtelecomEventCode->SetLabel(wxT("Îêîí÷àíèå ýâàêóàöèè"));
break;
case 5904U:
lblNavtelecomEventCode->SetLabel(wxT("Àâòîèíôîðìàòîð: îáúåêò âîø¸ë â ãåîçîíó"));
break;
case 5905U:
lblNavtelecomEventCode->SetLabel(wxT("Àâòîèíôîðìàòîð: îáúåêò âûøåë èç ãåîçîíû"));
break;
case 5906U:
lblNavtelecomEventCode->SetLabel(wxT("Ðåæèìû äâèæåíèÿ: ïðåâûøåíèå ñêîðîñòè"));
break;
case 5907U:
lblNavtelecomEventCode->SetLabel(wxT("Ðåæèìû äâèæåíèÿ: ñêîðîñòü â íîðìå"));
break;
case 5936U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíà ñêîðîñòü. Ïîðîã 1"));
break;
case 5937U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ñêîðîñòü â íîðìå. Ïîðîã 1"));
break;
case 5938U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíà ñêîðîñòü. Ïîðîã 2"));
break;
case 5939U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ñêîðîñòü â íîðìå. Ïîðîã 2"));
break;
case 5940U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíà ñêîðîñòü. Ïîðîã 3"));
break;
case 5941U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ñêîðîñòü â íîðìå. Ïîðîã 3"));
break;
case 5942U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíà ñêîðîñòü. Ïîðîã 4"));
break;
case 5943U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ñêîðîñòü â íîðìå. Ïîðîã 4"));
break;
case 5944U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíà ñêîðîñòü. Ïîðîã 5"));
break;
case 5945U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ñêîðîñòü â íîðìå. Ïîðîã 5"));
break;
case 5946U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíà ñêîðîñòü. Ïîðîã 6"));
break;
case 5947U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ñêîðîñòü â íîðìå. Ïîðîã 6"));
break;
case 5952U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå. Ïîðîã 1"));
break;
case 5953U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå â íîðìå. Ïîðîã 1"));
break;
case 5954U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå. Ïîðîã 2"));
break;
case 5955U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå â íîðìå. Ïîðîã 2"));
break;
case 5956U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå. Ïîðîã 3"));
break;
case 5957U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå â íîðìå. Ïîðîã 3"));
break;
case 5958U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå. Ïîðîã 4"));
break;
case 5959U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå â íîðìå. Ïîðîã 4"));
break;
case 5968U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî çàìåäëåíèå. Ïîðîã 1"));
break;
case 5969U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Çàìåäëåíèå â íîðìå. Ïîðîã 1"));
break;
case 5970U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî çàìåäëåíèå. Ïîðîã 2"));
break;
case 5971U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Çàìåäëåíèå â íîðìå. Ïîðîã 2"));
break;
case 5972U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî çàìåäëåíèå. Ïîðîã 3"));
break;
case 5973U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Çàìåäëåíèå â íîðìå. Ïîðîã 3"));
break;
case 5974U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî çàìåäëåíèå. Ïîðîã 4"));
break;
case 5975U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Çàìåäëåíèå â íîðìå. Ïîðîã 4"));
break;
case 5984U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå âëåâî. Ïîðîã 1"));
break;
case 5985U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå âëåâî â íîðìå. Ïîðîã 1"));
break;
case 5986U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå âëåâî. Ïîðîã 2"));
break;
case 5987U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå âëåâî â íîðìå. Ïîðîã 2"));
break;
case 5988U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå âëåâî. Ïîðîã 3"));
break;
case 5989U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå âëåâî â íîðìå. Ïîðîã 3"));
break;
case 5990U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå âëåâî. Ïîðîã 4"));
break;
case 5991U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå âëåâî â íîðìå. Ïîðîã 4"));
break;
case 6000U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå âïðàâî. Ïîðîã 1"));
break;
case 6001U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå âïðàâî â íîðìå. Ïîðîã 1"));
break;
case 6002U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå âïðàâî. Ïîðîã 2"));
break;
case 6003U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå âïðàâî â íîðìå. Ïîðîã 2"));
break;
case 6004U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå âïðàâî. Ïîðîã 3"));
break;
case 6005U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå âïðàâî â íîðìå. Ïîðîã 3"));
break;
case 6006U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî óñêîðåíèå âïðàâî. Ïîðîã 4"));
break;
case 6007U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Óñêîðåíèå âïðàâî â íîðìå. Ïîðîã 4"));
break;
case 6016U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî âåðòèêàëüíîå óñêîðåíèå. Ïîðîã 1"));
break;
case 6017U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Âåðòèêàëüíîå óñêîðåíèå â íîðìå. Ïîðîã 1"));
break;
case 6018U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî âåðòèêàëüíîå óñêîðåíèå. Ïîðîã 2"));
break;
case 6019U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Âåðòèêàëüíîå óñêîðåíèå â íîðìå. Ïîðîã 2"));
break;
case 6020U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî âåðòèêàëüíîå óñêîðåíèå. Ïîðîã 3"));
break;
case 6021U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Âåðòèêàëüíîå óñêîðåíèå â íîðìå. Ïîðîã 3"));
break;
case 6022U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Ïðåâûøåíî âåðòèêàëüíîå óñêîðåíèå. Ïîðîã 4"));
break;
case 6023U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Âåðòèêàëüíîå óñêîðåíèå â íîðìå. Ïîðîã 4"));
break;
case 6032U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Íàðóøåíèå, íå ïðèñò¸ãíóò ðåìåíü áåçîïàñíîñòè"));
break;
case 6033U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Îòìåíà íàðóøåíèÿ, ïðèñò¸ãíóò ðåìåíü áåçîïàñíîñòè"));
break;
case 6034U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Íàðóøåíèå, íå âêëþ÷åí áëèæíèé ñâåò"));
break;
case 6035U:
lblNavtelecomEventCode->SetLabel(wxT("EcoDriving: Îòìåíà íàðóøåíèÿ, âêëþ÷åí áëèæíèé ñâåò"));
break;
case 6048U:
lblNavtelecomEventCode->SetLabel(wxT("Íàïðÿæåíèå íà àíàëîãîâîì âõîäå ïîâûñèëîñü íà çàäàííûé ïîðîã"));
break;
case 6064U:
lblNavtelecomEventCode->SetLabel(wxT("Íàïðÿæåíèå íà àíàëîãîâîì âõîäå ïîíèçèëîñü íà çàäàííûé ïîðîã"));
break;
case 6080U:
lblNavtelecomEventCode->SetLabel(wxT("Óðîâåíü òîïëèâà èëè ÷àñòîòà íà èìïóëüñíîì âõîäå ïîâûñèëèñü íà çàäàííûé ïîðîã"));
break;
case 6096U:
lblNavtelecomEventCode->SetLabel(wxT("Óðîâåíü òîïëèâà èëè ÷àñòîòà íà èìïóëüñíîì âõîäå ïîíèçèëèñü íà çàäàííûé ïîðîã"));
break;
case 6112U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Óðîâåíü òîïëèâà èçìåíèëñÿ"));
break;
case 6113U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Âåñ èçìåíèëñÿ"));
break;
case 6114U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Îáîðîòû äâèãàòåëÿ èçìåíèëèñü"));
break;
case 6115U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Íàãðóçêà íà äâèãàòåëü èçìåíèëàñü"));
break;
case 6116U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Ïîëîæåíèå ïåäàëè ãàçà èçìåíèëîñü"));
break;
case 6117U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Ïîëîæåíèå ïåäàëè òîðìîçà èçìåíèëîñü"));
break;
case 6118U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Ñêîðîñòü èçìåíèëàñü"));
break;
case 6120U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Îáîðîòû áîëüøå ìàêñèìàëüíî çàäàííûõ"));
break;
case 6121U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Îáîðîòû ìåíüøå ìàêñèìàëüíî çàäàííûõ"));
break;
case 6122U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Èçìåíèëèñü ñòàíäàðòíûå ïàðàìåòðû"));
break;
case 6123U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Èçìåíèëèñü ïîëüçîâàòåëüñêèå ïàðàìåòðû"));
break;
case 6124U:
lblNavtelecomEventCode->SetLabel(wxT("CAN: Èçìåíèëèñü äîïîëíèòåëüíûå ïàðàìåòðû"));
break;
case 6145U:
lblNavtelecomEventCode->SetLabel(wxT("Âêëþ÷åíèå GSM-ìîäóëÿ"));
break;
case 6146U:
lblNavtelecomEventCode->SetLabel(wxT("Âûêëþ÷åíèå GSM-ìîäóëÿ"));
break;
case 6147U:
lblNavtelecomEventCode->SetLabel(wxT("Ðåãèñòðàöèÿ GSM â ñåòè"));
break;
case 6148U:
lblNavtelecomEventCode->SetLabel(wxT("Ïîòåðÿ ðåãèñòðàöèè GSM"));
break;
case 6149U:
lblNavtelecomEventCode->SetLabel(wxT("Ëîòîê SIM-êàðòû èçâëå÷åí èç óñòðîéñòâà"));
break;
case 6150U:
lblNavtelecomEventCode->SetLabel(wxT("Ëîòîê SIM-êàðòû óñòàíîâëåí â óñòðîéñòâî"));
break;
case 6398U:
lblNavtelecomEventCode->SetLabel(wxT("Ïîñòàíîâêà íà îõðàíó ïî áðåëîêó"));
break;
case 6399U:
lblNavtelecomEventCode->SetLabel(wxT("Ñíÿòèå ñ îõðàíû ïî áðåëîêó"));