Skip to content

Commit c58b388

Browse files
authored
Improvements for RTKNAVI (#77)
Add support for the following functionality to RTKNAVI: 1. Support for Wide Lane Ambiguity Resolution 2. Support for Wide Lane Ambiguity Resolution with hold and fix 3. Resize Options window for larger AR mode labels
1 parent 3e56672 commit c58b388

File tree

4 files changed

+44
-12
lines changed

4 files changed

+44
-12
lines changed

app/winapp/rtknavi/navimain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,6 +2453,7 @@ void __fastcall TMainForm::LoadOpt(void)
24532453
PrcOpt.dynamics =ini->ReadInteger("prcopt", "dynamics", 0);
24542454
PrcOpt.tidecorr =ini->ReadInteger("prcopt", "tidecorr", 0);
24552455
PrcOpt.modear =ini->ReadInteger("prcopt", "modear", 1);
2456+
PrcOpt.wlmodear =ini->ReadInteger("prcopt", "wlmodear", 0);
24562457
PrcOpt.glomodear=ini->ReadInteger("prcopt", "glomodear", 0);
24572458
PrcOpt.bdsmodear=ini->ReadInteger("prcopt", "bdsmodear", 0);
24582459
PrcOpt.maxout =ini->ReadInteger("prcopt", "maxout", 5);
@@ -2701,6 +2702,7 @@ void __fastcall TMainForm::SaveOpt(void)
27012702
ini->WriteInteger("prcopt", "dynamics", PrcOpt.dynamics );
27022703
ini->WriteInteger("prcopt", "tidecorr", PrcOpt.tidecorr );
27032704
ini->WriteInteger("prcopt", "modear", PrcOpt.modear );
2705+
ini->WriteInteger("prcopt", "wlmodear", PrcOpt.wlmodear );
27042706
ini->WriteInteger("prcopt", "glomodear", PrcOpt.glomodear );
27052707
ini->WriteInteger("prcopt", "bdsmodear", PrcOpt.bdsmodear );
27062708
ini->WriteInteger("prcopt", "maxout", PrcOpt.maxout );

app/winapp/rtknavi/naviopt.cpp

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,15 @@ void __fastcall TOptDialog::GetOpt(void)
405405
IonoOpt ->ItemIndex=PrcOpt.ionoopt;
406406
TropOpt ->ItemIndex=PrcOpt.tropopt;
407407
SatEphem ->ItemIndex=PrcOpt.sateph;
408-
AmbRes ->ItemIndex=PrcOpt.modear;
408+
if(PrcOpt.modear>ARMODE_FIXHOLD) {
409+
if(PrcOpt.wlmodear==0) {
410+
AmbRes ->ItemIndex =4;
411+
} else {
412+
AmbRes ->ItemIndex =5;
413+
}
414+
} else {
415+
AmbRes ->ItemIndex =PrcOpt.modear;
416+
}
409417
GloAmbRes ->ItemIndex=PrcOpt.glomodear;
410418
BdsAmbRes ->ItemIndex=PrcOpt.bdsmodear;
411419
ValidThresAR ->Text =s.sprintf("%.1f",PrcOpt.thresar[0]);
@@ -533,6 +541,11 @@ void __fastcall TOptDialog::SetOpt(void)
533541
PrcOpt.tropopt =TropOpt ->ItemIndex;
534542
PrcOpt.sateph =SatEphem ->ItemIndex;
535543
PrcOpt.modear =AmbRes ->ItemIndex;
544+
PrcOpt.wlmodear=0;
545+
if(AmbRes->ItemIndex>3) {
546+
PrcOpt.modear=ARMODE_WL;
547+
if(AmbRes->ItemIndex==5) PrcOpt.wlmodear=1;
548+
}
536549
PrcOpt.glomodear =GloAmbRes ->ItemIndex;
537550
PrcOpt.bdsmodear =BdsAmbRes ->ItemIndex;
538551
PrcOpt.thresar[0]=str2dbl(ValidThresAR->Text);
@@ -720,8 +733,15 @@ void __fastcall TOptDialog::LoadOpt(AnsiString file)
720733
PosOpt4 ->Checked =prcopt.posopt[3];
721734
PosOpt5 ->Checked =prcopt.posopt[4];
722735
PosOpt6 ->Checked =prcopt.posopt[5];
723-
724-
AmbRes ->ItemIndex =prcopt.modear;
736+
if(prcopt.modear>ARMODE_FIXHOLD) {
737+
if(prcopt.wlmodear==0) {
738+
AmbRes ->ItemIndex =4;
739+
} else {
740+
AmbRes ->ItemIndex =5;
741+
}
742+
} else {
743+
AmbRes ->ItemIndex =prcopt.modear;
744+
}
725745
GloAmbRes ->ItemIndex =prcopt.glomodear;
726746
BdsAmbRes ->ItemIndex =prcopt.bdsmodear;
727747
ValidThresAR ->Text =s.sprintf("%.1f",prcopt.thresar[0]);
@@ -937,6 +957,11 @@ void __fastcall TOptDialog::SaveOpt(AnsiString file)
937957
prcopt.posopt[5]=PosOpt6->Checked;
938958

939959
prcopt.modear =AmbRes ->ItemIndex;
960+
prcopt.wlmodear=0;
961+
if(AmbRes->ItemIndex>3) {
962+
prcopt.modear=ARMODE_WL;
963+
if(AmbRes->ItemIndex==5) prcopt.wlmodear=1;
964+
}
940965
prcopt.glomodear=GloAmbRes ->ItemIndex;
941966
prcopt.bdsmodear=BdsAmbRes ->ItemIndex;
942967
prcopt.thresar[0]=str2dbl(ValidThresAR->Text);

app/winapp/rtknavi/naviopt.dfm

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ object OptDialog: TOptDialog
55
BorderStyle = bsDialog
66
Caption = 'Options'
77
ClientHeight = 297
8-
ClientWidth = 411
8+
ClientWidth = 491
99
Color = clWhite
1010
Font.Charset = DEFAULT_CHARSET
1111
Font.Color = clWindowText
@@ -55,7 +55,7 @@ object OptDialog: TOptDialog
5555
object Options: TPageControl
5656
Left = 0
5757
Top = 0
58-
Width = 411
58+
Width = 491
5959
Height = 263
6060
ActivePage = TabSheet1
6161
Align = alTop
@@ -481,7 +481,7 @@ object OptDialog: TOptDialog
481481
object AmbRes: TComboBox
482482
Left = 248
483483
Top = 4
484-
Width = 61
484+
Width = 141
485485
Height = 21
486486
Style = csDropDownList
487487
ItemIndex = 0
@@ -492,7 +492,9 @@ object OptDialog: TOptDialog
492492
'OFF'
493493
'Continuous'
494494
'Instantaneous'
495-
'Fix and Hold')
495+
'Fix and Hold'
496+
'Wide Lane'
497+
'Wide Lane with Fix and Hold')
496498
end
497499
object ValidThresAR: TEdit
498500
Left = 248
@@ -559,7 +561,7 @@ object OptDialog: TOptDialog
559561
Text = '1'
560562
end
561563
object GloAmbRes: TComboBox
562-
Left = 311
564+
Left = 391
563565
Top = 4
564566
Width = 43
565567
Height = 21
@@ -653,7 +655,7 @@ object OptDialog: TOptDialog
653655
'ON')
654656
end
655657
object BdsAmbRes: TComboBox
656-
Left = 356
658+
Left = 436
657659
Top = 4
658660
Width = 43
659661
Height = 21
@@ -1832,7 +1834,7 @@ object OptDialog: TOptDialog
18321834
ExplicitWidth = 0
18331835
ExplicitHeight = 0
18341836
DesignSize = (
1835-
403
1837+
483
18361838
235)
18371839
object Label19: TLabel
18381840
Left = 32
@@ -1849,7 +1851,7 @@ object OptDialog: TOptDialog
18491851
Caption = 'Solution Font'
18501852
end
18511853
object FontLabel2: TLabel
1852-
Left = 265
1854+
Left = 345
18531855
Top = 188
18541856
Width = 80
18551857
Height = 18
@@ -1921,7 +1923,7 @@ object OptDialog: TOptDialog
19211923
Caption = 'Panel Font'
19221924
end
19231925
object FontLabel1: TLabel
1924-
Left = 265
1926+
Left = 345
19251927
Top = 164
19261928
Width = 80
19271929
Height = 18

app/winapp/rtknavi/rtknavi.cbproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,9 @@
403403
<BuildOrder>31</BuildOrder>
404404
<BuildOrder>2</BuildOrder>
405405
</CppCompile>
406+
<CppCompile Include="..\..\..\src\rcv\swiftnav.c">
407+
<BuildOrder>59</BuildOrder>
408+
</CppCompile>
406409
<CppCompile Include="..\..\..\src\rcv\ublox.c">
407410
<BuildOrder>48</BuildOrder>
408411
<BuildOrder>15</BuildOrder>

0 commit comments

Comments
 (0)