rtklibexplorer / RTKLIB

A version of RTKLIB optimized for low cost GNSS receivers, especially u-blox receivers. It is based on RTKLIB 2.4.3 and is kept reasonably closely synced to that branch. This software is provided “AS IS” without any warranties of any kind so please be careful, especially if using it in any kind of real-time application.
http://rtkexplorer.com/
Other
603 stars 236 forks source link

rtkplot_qt demo5 b34j Default value of start time of Time Span/Interval... window is different from the chart #402

Closed qgis2000 closed 1 week ago

qgis2000 commented 1 week ago

The Time Span/Interval... window shows the start time shifted in relation to the Plot Type=Position chart.

JensReimann commented 1 week ago

Will be fixed with the next update.

JensReimann commented 1 week ago

Please test the latest git version. Hopefully you can confirm the time is now correctly shown.

qgis2000 commented 1 week ago

I can't compile the latest version now:

../appcmn_qt/tspandlg.cpp: In member function ‘void SpanDialog::setStartTime(gtime_t)’: ../appcmn_qt/tspandlg.cpp:84:80: error: incomplete type ‘QTimeZone’ used in nested name specifier QDateTime start = QDateTime::fromSecsSinceEpoch(timeStart.time, QTimeZone::UTC); ^~~ ../appcmn_qt/tspandlg.cpp: In member function ‘void SpanDialog::setEndTime(gtime_t)’: ../appcmn_qt/tspandlg.cpp:104:76: error: incomplete type ‘QTimeZone’ used in nested name specifier QDateTime end = QDateTime::fromSecsSinceEpoch(timeEnd.time, QTimeZone::UTC); ^~~ *** Error code 1

JensReimann commented 1 week ago

Which Qt version do you use? Qt5? I changed to code to include which should fix compilation. Please try.

qgis2000 commented 1 week ago

Qt5. I can't compile either. Maybe utc() instead of UTC?

../appcmn_qt/tspandlg.cpp: In member function ‘void SpanDialog::setStartTime(gtime_t)’: ../appcmn_qt/tspandlg.cpp:85:80: error: ‘UTC’ is not a member of ‘QTimeZone’ QDateTime start = QDateTime::fromSecsSinceEpoch(timeStart.time, QTimeZone::UTC); ^~~ ../appcmn_qt/tspandlg.cpp: In member function ‘void SpanDialog::setEndTime(gtime_t)’: ../appcmn_qt/tspandlg.cpp:105:76: error: ‘UTC’ is not a member of ‘QTimeZone’ QDateTime end = QDateTime::fromSecsSinceEpoch(timeEnd.time, QTimeZone::UTC); ^~~ *** Error code 1

JensReimann commented 1 week ago

Yes, you are right. I have tested it only against Qt6, but for Qt5 you have to use utc(). It should now compile with Qt5, too.

BTW: there are also some fixes for the other issues reported by you committed.

qgis2000 commented 1 week ago

I tested it. All right. Thank you.