Skip to content

Commit 7f8bc66

Browse files
committed
rtknavi: emit the base reference position in all relative modes
1 parent bf1314c commit 7f8bc66

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

app/qtapp/rtknavi_qt/navimain.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,8 +2303,7 @@ void MainWindow::saveLogs()
23032303

23042304
data = tr("%% program : %1 ver. %2 %3\n").arg(PRGNAME, VER_RTKLIB, PATCH_LEVEL);
23052305
str << data;
2306-
if (optDialog->processingOptions.mode == PMODE_DGPS || optDialog->processingOptions.mode == PMODE_KINEMA ||
2307-
optDialog->processingOptions.mode == PMODE_STATIC) {
2306+
if (optDialog->processingOptions.mode >= PMODE_DGPS && optDialog->processingOptions.mode <= PMODE_FIXED) {
23082307
ecef2pos(optDialog->processingOptions.rb, pos);
23092308
data = QStringLiteral("%% ref pos :%1 %2 %3\n").arg(pos[0] * R2D, 13, 'f', 9)
23102309
.arg(pos[1] * R2D, 14, 'f', 9).arg(pos[2], 10, 'f', 4);

app/winapp/rtknavi/navimain.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,8 +2250,7 @@ void __fastcall TMainForm::SaveLog(void)
22502250
opt.posf=posf[SolType];
22512251
if (SolOpt.outhead) {
22522252
fprintf(fp,"%% program : %s ver.%s %s\n",PRGNAME,VER_RTKLIB,PATCH_LEVEL);
2253-
if (PrcOpt.mode==PMODE_DGPS||PrcOpt.mode==PMODE_KINEMA||
2254-
PrcOpt.mode==PMODE_STATIC) {
2253+
if (PrcOpt.mode>=PMODE_DGPS && PrcOpt.mode<=PMODE_FIXED) {
22552254
ecef2pos(PrcOpt.rb,pos);
22562255
fprintf(fp,"%% ref pos :%13.9f %14.9f %10.4f\n",pos[0]*R2D,
22572256
pos[1]*R2D,pos[2]);

0 commit comments

Comments
 (0)