Skip to content

Commit 7c995ac

Browse files
authored
Merge pull request #668 from ourairquality/rtknavi-emit-refpos-rel
rtknavi: emit the base reference position in all relative modes
2 parents a25f247 + 7f8bc66 commit 7c995ac

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
@@ -2305,8 +2305,7 @@ void MainWindow::saveLogs()
23052305

23062306
data = tr("%% program : %1 ver. %2 %3\n").arg(PRGNAME, VER_RTKLIB, PATCH_LEVEL);
23072307
str << data;
2308-
if (optDialog->processingOptions.mode == PMODE_DGPS || optDialog->processingOptions.mode == PMODE_KINEMA ||
2309-
optDialog->processingOptions.mode == PMODE_STATIC) {
2308+
if (optDialog->processingOptions.mode >= PMODE_DGPS && optDialog->processingOptions.mode <= PMODE_FIXED) {
23102309
ecef2pos(optDialog->processingOptions.rb, pos);
23112310
data = QStringLiteral("%% ref pos :%1 %2 %3\n").arg(pos[0] * R2D, 13, 'f', 9)
23122311
.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
@@ -2251,8 +2251,7 @@ void __fastcall TMainForm::SaveLog(void)
22512251
opt.posf=posf[SolType];
22522252
if (SolOpt.outhead) {
22532253
fprintf(fp,"%% program : %s ver.%s %s\n",PRGNAME,VER_RTKLIB,PATCH_LEVEL);
2254-
if (PrcOpt.mode==PMODE_DGPS||PrcOpt.mode==PMODE_KINEMA||
2255-
PrcOpt.mode==PMODE_STATIC) {
2254+
if (PrcOpt.mode>=PMODE_DGPS && PrcOpt.mode<=PMODE_FIXED) {
22562255
ecef2pos(PrcOpt.rb,pos);
22572256
fprintf(fp,"%% ref pos :%13.9f %14.9f %10.4f\n",pos[0]*R2D,
22582257
pos[1]*R2D,pos[2]);

0 commit comments

Comments
 (0)