Skip to content

Commit f290f20

Browse files
authored
Merge pull request tomojitakasu#681 from ourairquality/rtkconv-sort-sats
rtkconv: add sort satellites option
2 parents 50a0989 + 708f905 commit f290f20

5 files changed

Lines changed: 49 additions & 35 deletions

File tree

app/winapp/rtkconv/convmain.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,7 @@ void __fastcall TMainWindow::ConvertFile(void)
962962
rnxopt.autopos=AutoPos;
963963
rnxopt.phshift=PhaseShift;
964964
rnxopt.halfcyc=HalfCyc;
965+
rnxopt.sortsats=SortSats;
965966
rnxopt.outiono=OutIono;
966967
rnxopt.outtime=OutTime;
967968
rnxopt.outleaps=OutLeaps;
@@ -1083,6 +1084,7 @@ void __fastcall TMainWindow::LoadOpt(void)
10831084
AutoPos =ini->ReadInteger("opt","autopos", 0);
10841085
PhaseShift =ini->ReadInteger("opt","phaseshift", 0);
10851086
HalfCyc =ini->ReadInteger("opt","halfcyc", 0);
1087+
SortSats =ini->ReadInteger("opt","sortsats", 0);
10861088
OutIono =ini->ReadInteger("opt","outiono", 0);
10871089
OutTime =ini->ReadInteger("opt","outtime", 0);
10881090
OutLeaps =ini->ReadInteger("opt","outleaps", 0);
@@ -1187,6 +1189,7 @@ void __fastcall TMainWindow::SaveOpt(void)
11871189
ini->WriteInteger("opt","autopos", AutoPos);
11881190
ini->WriteInteger("opt","phaseshift", PhaseShift);
11891191
ini->WriteInteger("opt","halfcyc", HalfCyc);
1192+
ini->WriteInteger("opt","sortsats", SortSats);
11901193
ini->WriteInteger("opt","outiono", OutIono);
11911194
ini->WriteInteger("opt","outtime", OutTime);
11921195
ini->WriteInteger("opt","outleaps", OutLeaps);

app/winapp/rtkconv/convmain.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class TMainWindow : public TForm
205205
AnsiString CodeMask[7];
206206
double AppPos[3],AntDel[3],TimeTol;
207207
int RnxVer,RnxFile,NavSys,ObsType,FreqType,TraceLevel,EventEna;
208-
int AutoPos,PhaseShift,HalfCyc,OutIono,OutTime,OutLeaps,SepNav;
208+
int AutoPos,PhaseShift,HalfCyc,SortSats,OutIono,OutTime,OutLeaps,SepNav;
209209
int EnaGloFcn,GloFcn[27];
210210

211211
__fastcall TMainWindow(TComponent* Owner);

app/winapp/rtkconv/convopt.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ void __fastcall TConvOptDialog::FormShow(TObject *Sender)
6363
AutoPos->Checked=MainWindow->AutoPos;
6464
PhaseShift->Checked=MainWindow->PhaseShift;
6565
HalfCyc->Checked=MainWindow->HalfCyc;
66+
SortSats->Checked=MainWindow->SortSats;
6667
OutIono->Checked=MainWindow->OutIono;
6768
OutTime->Checked=MainWindow->OutTime;
6869
OutLeaps->Checked=MainWindow->OutLeaps;
@@ -124,6 +125,7 @@ void __fastcall TConvOptDialog::BtnOkClick(TObject *Sender)
124125
MainWindow->AutoPos=AutoPos->Checked;
125126
MainWindow->PhaseShift=PhaseShift->Checked;
126127
MainWindow->HalfCyc=HalfCyc->Checked;
128+
MainWindow->SortSats=SortSats->Checked;
127129
MainWindow->OutIono=OutIono->Checked;
128130
MainWindow->OutTime=OutTime->Checked;
129131
MainWindow->OutLeaps=OutLeaps->Checked;

app/winapp/rtkconv/convopt.dfm

Lines changed: 42 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ object ConvOptDialog: TConvOptDialog
6767
OnClick = BtnOkClick
6868
end
6969
object BtnCancel: TButton
70-
Left = 339
70+
Left = 342
7171
Top = 350
7272
Width = 80
7373
Height = 36
@@ -79,7 +79,7 @@ object ConvOptDialog: TConvOptDialog
7979
object GroupBox1: TGroupBox
8080
Left = 1
8181
Top = 24
82-
Width = 417
82+
Width = 433
8383
Height = 204
8484
TabOrder = 6
8585
object Label1: TLabel
@@ -270,30 +270,6 @@ object ConvOptDialog: TConvOptDialog
270270
Height = 21
271271
TabOrder = 6
272272
end
273-
object OutIono: TCheckBox
274-
Left = 187
275-
Top = 182
276-
Width = 68
277-
Height = 18
278-
Caption = 'Iono Corr'
279-
TabOrder = 22
280-
end
281-
object OutTime: TCheckBox
282-
Left = 263
283-
Top = 182
284-
Width = 65
285-
Height = 18
286-
Caption = 'Time Corr'
287-
TabOrder = 23
288-
end
289-
object OutLeaps: TCheckBox
290-
Left = 341
291-
Top = 182
292-
Width = 62
293-
Height = 18
294-
Caption = 'Leap Sec'
295-
TabOrder = 24
296-
end
297273
object AutoPos: TCheckBox
298274
Left = 109
299275
Top = 137
@@ -302,21 +278,53 @@ object ConvOptDialog: TConvOptDialog
302278
TabOrder = 19
303279
OnClick = AutoPosClick
304280
end
281+
object PhaseShift: TCheckBox
282+
Left = 5
283+
Top = 182
284+
Width = 78
285+
Height = 18
286+
Caption = 'Phase Shift'
287+
TabOrder = 20
288+
end
305289
object HalfCyc: TCheckBox
306-
Left = 96
307-
Top = 183
308-
Width = 82
290+
Left = 86
291+
Top = 182
292+
Width = 85
309293
Height = 18
310294
Caption = 'Half Cyc Corr'
311295
TabOrder = 21
312296
end
313-
object PhaseShift: TCheckBox
314-
Left = 10
297+
object SortSats: TCheckBox
298+
Left = 175
315299
Top = 182
316-
Width = 76
300+
Width = 44
317301
Height = 18
318-
Caption = 'Phase Shift'
319-
TabOrder = 20
302+
Caption = 'Sort'
303+
TabOrder = 22
304+
end
305+
object OutIono: TCheckBox
306+
Left = 222
307+
Top = 182
308+
Width = 71
309+
Height = 18
310+
Caption = 'Iono Corr'
311+
TabOrder = 23
312+
end
313+
object OutTime: TCheckBox
314+
Left = 293
315+
Top = 182
316+
Width = 68
317+
Height = 18
318+
Caption = 'Time Corr'
319+
TabOrder = 24
320+
end
321+
object OutLeaps: TCheckBox
322+
Left = 364
323+
Top = 182
324+
Width = 72
325+
Height = 18
326+
Caption = 'Leap Sec'
327+
TabOrder = 25
320328
end
321329
end
322330
object GroupBox3: TGroupBox

app/winapp/rtkconv/convopt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class TConvOptDialog : public TForm
7878
TButton *BtnMask;
7979
TCheckBox *Nav7;
8080
TCheckBox *HalfCyc;
81+
TCheckBox *SortSats;
8182
TCheckBox *ChkSepNav;
8283
TLabel *Label13;
8384
TEdit *TimeTol;

0 commit comments

Comments
 (0)