Skip to content

Commit

Permalink
New option for RTKNAVI: allow Wide Lane Integer Ambiguity Resolution …
Browse files Browse the repository at this point in the history
…(with optional Fix and Hold) to be selected
  • Loading branch information
ebethon committed Mar 17, 2022
1 parent c1f64f1 commit f0ae60b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 10 deletions.
2 changes: 2 additions & 0 deletions app/winapp/rtknavi/navimain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,7 @@ void __fastcall TMainForm::LoadOpt(void)
PrcOpt.dynamics =ini->ReadInteger("prcopt", "dynamics", 0);
PrcOpt.tidecorr =ini->ReadInteger("prcopt", "tidecorr", 0);
PrcOpt.modear =ini->ReadInteger("prcopt", "modear", 1);
PrcOpt.wlmodear =ini->ReadInteger("prcopt", "wlmodear", 0);
PrcOpt.glomodear=ini->ReadInteger("prcopt", "glomodear", 0);
PrcOpt.bdsmodear=ini->ReadInteger("prcopt", "bdsmodear", 0);
PrcOpt.maxout =ini->ReadInteger("prcopt", "maxout", 5);
Expand Down Expand Up @@ -2701,6 +2702,7 @@ void __fastcall TMainForm::SaveOpt(void)
ini->WriteInteger("prcopt", "dynamics", PrcOpt.dynamics );
ini->WriteInteger("prcopt", "tidecorr", PrcOpt.tidecorr );
ini->WriteInteger("prcopt", "modear", PrcOpt.modear );
ini->WriteInteger("prcopt", "wlmodear", PrcOpt.wlmodear );
ini->WriteInteger("prcopt", "glomodear", PrcOpt.glomodear );
ini->WriteInteger("prcopt", "bdsmodear", PrcOpt.bdsmodear );
ini->WriteInteger("prcopt", "maxout", PrcOpt.maxout );
Expand Down
29 changes: 28 additions & 1 deletion app/winapp/rtknavi/naviopt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,15 @@ void __fastcall TOptDialog::GetOpt(void)
IonoOpt ->ItemIndex=PrcOpt.ionoopt;
TropOpt ->ItemIndex=PrcOpt.tropopt;
SatEphem ->ItemIndex=PrcOpt.sateph;
AmbRes ->ItemIndex=PrcOpt.modear;
if(PrcOpt.modear>ARMODE_FIXHOLD) {
if(PrcOpt.wlmodear==0) {
AmbRes ->ItemIndex =4;
} else {
AmbRes ->ItemIndex =5;
}
} else {
AmbRes ->ItemIndex =PrcOpt.modear;
}
GloAmbRes ->ItemIndex=PrcOpt.glomodear;
BdsAmbRes ->ItemIndex=PrcOpt.bdsmodear;
ValidThresAR ->Text =s.sprintf("%.1f",PrcOpt.thresar[0]);
Expand Down Expand Up @@ -533,6 +541,11 @@ void __fastcall TOptDialog::SetOpt(void)
PrcOpt.tropopt =TropOpt ->ItemIndex;
PrcOpt.sateph =SatEphem ->ItemIndex;
PrcOpt.modear =AmbRes ->ItemIndex;
PrcOpt.wlmodear=0;
if(AmbRes->ItemIndex>3) {
PrcOpt.modear=ARMODE_WL;
if(AmbRes->ItemIndex==5) PrcOpt.wlmodear=1;
}
PrcOpt.glomodear =GloAmbRes ->ItemIndex;
PrcOpt.bdsmodear =BdsAmbRes ->ItemIndex;
PrcOpt.thresar[0]=str2dbl(ValidThresAR->Text);
Expand Down Expand Up @@ -722,6 +735,15 @@ void __fastcall TOptDialog::LoadOpt(AnsiString file)
PosOpt6 ->Checked =prcopt.posopt[5];

AmbRes ->ItemIndex =prcopt.modear;
if(prcopt.modear>ARMODE_FIXHOLD) {
if(prcopt.wlmodear==0) {
AmbRes ->ItemIndex =4;
} else {
AmbRes ->ItemIndex =5;
}
} else {
AmbRes ->ItemIndex =prcopt.modear;
}
GloAmbRes ->ItemIndex =prcopt.glomodear;
BdsAmbRes ->ItemIndex =prcopt.bdsmodear;
ValidThresAR ->Text =s.sprintf("%.1f",prcopt.thresar[0]);
Expand Down Expand Up @@ -937,6 +959,11 @@ void __fastcall TOptDialog::SaveOpt(AnsiString file)
prcopt.posopt[5]=PosOpt6->Checked;

prcopt.modear =AmbRes ->ItemIndex;
prcopt.wlmodear=0;
if(AmbRes->ItemIndex>3) {
prcopt.modear=ARMODE_WL;
if(AmbRes->ItemIndex==5) prcopt.wlmodear=1;
}
prcopt.glomodear=GloAmbRes ->ItemIndex;
prcopt.bdsmodear=BdsAmbRes ->ItemIndex;
prcopt.thresar[0]=str2dbl(ValidThresAR->Text);
Expand Down
20 changes: 11 additions & 9 deletions app/winapp/rtknavi/naviopt.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ object OptDialog: TOptDialog
BorderStyle = bsDialog
Caption = 'Options'
ClientHeight = 297
ClientWidth = 411
ClientWidth = 491
Color = clWhite
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Expand Down Expand Up @@ -55,7 +55,7 @@ object OptDialog: TOptDialog
object Options: TPageControl
Left = 0
Top = 0
Width = 411
Width = 491
Height = 263
ActivePage = TabSheet1
Align = alTop
Expand Down Expand Up @@ -481,7 +481,7 @@ object OptDialog: TOptDialog
object AmbRes: TComboBox
Left = 248
Top = 4
Width = 61
Width = 141
Height = 21
Style = csDropDownList
ItemIndex = 0
Expand All @@ -492,7 +492,9 @@ object OptDialog: TOptDialog
'OFF'
'Continuous'
'Instantaneous'
'Fix and Hold')
'Fix and Hold'
'Wide Lane'
'Wide Lane with Fix and Hold')
end
object ValidThresAR: TEdit
Left = 248
Expand Down Expand Up @@ -559,7 +561,7 @@ object OptDialog: TOptDialog
Text = '1'
end
object GloAmbRes: TComboBox
Left = 311
Left = 391
Top = 4
Width = 43
Height = 21
Expand Down Expand Up @@ -653,7 +655,7 @@ object OptDialog: TOptDialog
'ON')
end
object BdsAmbRes: TComboBox
Left = 356
Left = 436
Top = 4
Width = 43
Height = 21
Expand Down Expand Up @@ -1832,7 +1834,7 @@ object OptDialog: TOptDialog
ExplicitWidth = 0
ExplicitHeight = 0
DesignSize = (
403
483
235)
object Label19: TLabel
Left = 32
Expand All @@ -1849,7 +1851,7 @@ object OptDialog: TOptDialog
Caption = 'Solution Font'
end
object FontLabel2: TLabel
Left = 265
Left = 345
Top = 188
Width = 80
Height = 18
Expand Down Expand Up @@ -1921,7 +1923,7 @@ object OptDialog: TOptDialog
Caption = 'Panel Font'
end
object FontLabel1: TLabel
Left = 265
Left = 345
Top = 164
Width = 80
Height = 18
Expand Down

0 comments on commit f0ae60b

Please sign in to comment.