diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/.ninja_deps b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/.ninja_deps index 6fa17fc..6bc9cb2 100644 Binary files a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/.ninja_deps and b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/.ninja_deps differ diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/.ninja_log b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/.ninja_log index 98c0cc4..75b8a59 100644 --- a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/.ninja_log +++ b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/.ninja_log @@ -38,3 +38,11 @@ 1 22 1770022435693402494 /home/flower/code/camera/flyLink/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/mocs_compilation.cpp 67b8a88a4f836678 22 2151 1770022435714403069 CMakeFiles/skylink_station.dir/src/MainWindow.cpp.o fd43d8ab38120043 2151 2376 1770022437843461352 skylink_station 1a20341c5a20a204 +2 146 1770023385016108685 skylink_station_autogen/timestamp 67b8a88a4f836678 +2 146 1770023385016108685 skylink_station_autogen/mocs_compilation.cpp 67b8a88a4f836678 +2 146 1770023385016108685 /home/flower/code/camera/flyLink/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/timestamp 67b8a88a4f836678 +2 146 1770023385016108685 /home/flower/code/camera/flyLink/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/mocs_compilation.cpp 67b8a88a4f836678 +147 1057 1770023385024108961 CMakeFiles/skylink_station.dir/src/main.cpp.o a2b53bd089c5d0a9 +146 1931 1770023385023108927 CMakeFiles/skylink_station.dir/skylink_station_autogen/mocs_compilation.cpp.o ef5337e928a073c4 +147 2514 1770023385024108961 CMakeFiles/skylink_station.dir/src/MainWindow.cpp.o fd43d8ab38120043 +2514 2738 1770023387391190731 skylink_station 1a20341c5a20a204 diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/d/fd99a00f87ec24ca7f14994b9a457097ddac61c2b0890f4adc434b6f49995af1.d b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/d/fd99a00f87ec24ca7f14994b9a457097ddac61c2b0890f4adc434b6f49995af1.d index cd5837f..1cae8aa 100644 --- a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/d/fd99a00f87ec24ca7f14994b9a457097ddac61c2b0890f4adc434b6f49995af1.d +++ b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/d/fd99a00f87ec24ca7f14994b9a457097ddac61c2b0890f4adc434b6f49995af1.d @@ -1,11 +1,18 @@ skylink_station_autogen/timestamp: \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QDateTime \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QDebug \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QFlags \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QIODevice \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QList \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QMap \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QMetaType \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QObject \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QSharedDataPointer \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QString \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QThread \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QTimer \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QUrl \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QVariant \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/q20memory.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/q20type_traits.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qalgorithms.h \ @@ -34,6 +41,7 @@ skylink_station_autogen/timestamp: \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontainerinfo.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontainertools_impl.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontiguouscache.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcryptographichash.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdarwinhelpers.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdatastream.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdatetime.h \ @@ -152,10 +160,24 @@ skylink_station_autogen/timestamp: \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtransform.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qwindowdefs.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QHostAddress \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkAccessManager \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkReply \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkRequest \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QSslConfiguration \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QSslPreSharedKeyAuthenticator \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QTcpSocket \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QUdpSocket \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qabstractsocket.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qhostaddress.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkaccessmanager.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkreply.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkrequest.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qssl.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslcertificate.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslconfiguration.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslerror.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslpresharedkeyauthenticator.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslsocket.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtcpsocket.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetwork-config.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetworkexports.h \ diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/skylink_station_autogen/mocs_compilation.cpp.o b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/skylink_station_autogen/mocs_compilation.cpp.o index c33e0df..3c72463 100644 Binary files a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/skylink_station_autogen/mocs_compilation.cpp.o and b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/skylink_station_autogen/mocs_compilation.cpp.o differ diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/src/MainWindow.cpp.o b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/src/MainWindow.cpp.o index db2cfb1..653e870 100644 Binary files a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/src/MainWindow.cpp.o and b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/src/MainWindow.cpp.o differ diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/src/main.cpp.o b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/src/main.cpp.o index e448a56..fd3ef0c 100644 Binary files a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/src/main.cpp.o and b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station.dir/src/main.cpp.o differ diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station_autogen.dir/ParseCache.txt b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station_autogen.dir/ParseCache.txt index 800a042..d4699c1 100644 --- a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station_autogen.dir/ParseCache.txt +++ b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/CMakeFiles/skylink_station_autogen.dir/ParseCache.txt @@ -1,14 +1,15 @@ # Generated by CMake. Changes will be overwritten. -/home/flower/code/camera/flyLink/skylink_qt_station/src/main.cpp -/home/flower/code/camera/flyLink/skylink_qt_station/src/GroundReceiver.cpp -/home/flower/code/camera/flyLink/skylink_qt_station/src/MainWindow.h +/home/flower/code/camera/flyLink/skylink_qt_station/src/DataLogger.h +/home/flower/code/camera/flyLink/skylink_qt_station/src/DataLogger.cpp +/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfo.h +/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfoReceiver.cpp +/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfoReceiver.h mmc:Q_OBJECT - mdp:/home/flower/code/camera/flyLink/skylink_qt_station/src/MainWindow.h + mdp:/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfoReceiver.h mdp:/home/flower/code/camera/flyLink/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/moc_predefs.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QDateTime mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QObject mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QString - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QTimer mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/q20memory.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/q20type_traits.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qalgorithms.h @@ -20,7 +21,6 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qatomic.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qatomic_cxx11.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qbasicatomic.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qbasictimer.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qbindingstorage.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qbytearray.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qbytearrayalgorithms.h @@ -55,13 +55,11 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qiodevicebase.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qiterable.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qiterator.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qline.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qlist.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qlocale.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qlogging.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmalloc.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmap.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmargins.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmath.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmetacontainer.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmetatype.h @@ -74,9 +72,7 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qobjectdefs_impl.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qoverload.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qpair.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qpoint.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qprocessordetection.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qrect.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qrefcount.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qscopedpointer.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qscopeguard.h @@ -85,7 +81,6 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qshareddata_impl.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qsharedpointer.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qsharedpointer_impl.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qsize.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qstring.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qstringalgorithms.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qstringbuilder.h @@ -107,7 +102,6 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtdeprecationmarkers.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtenvironmentvariables.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtextstream.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtimer.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtmetamacros.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtnoop.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtpreprocessorsupport.h @@ -118,66 +112,21 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtversionchecks.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtypeinfo.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtypes.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qurl.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qutf8stringview.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qvariant.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qvarlengtharray.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qversiontagging.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qxptype_traits.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/QImage - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qaction.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qbitmap.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qbrush.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qcolor.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qcursor.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qfont.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qfontinfo.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qfontmetrics.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qicon.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qimage.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qkeysequence.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpaintdevice.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpalette.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpicture.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpixelformat.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpixmap.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpolygon.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qregion.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qrgb.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qrgba64.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtextdocument.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtgui-config.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtguiexports.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtguiglobal.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtransform.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qwindowdefs.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QHostAddress - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QTcpSocket mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QUdpSocket mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qabstractsocket.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qhostaddress.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtcpsocket.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetwork-config.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetworkexports.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetworkglobal.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qudpsocket.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/QLabel - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/QMainWindow - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/QPushButton - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qabstractbutton.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qframe.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qlabel.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qmainwindow.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qpushbutton.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qsizepolicy.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qtabwidget.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qtwidgets-config.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qtwidgetsexports.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qtwidgetsglobal.h - mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qwidget.h mdp:/home/flower/code/camera/flyLink/skylink_qt_station/protocol/protocol.h mdp:/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfo.h - mdp:/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfoReceiver.h mdp:/usr/include/alloca.h mdp:/usr/include/asm-generic/errno-base.h mdp:/usr/include/asm-generic/errno.h @@ -433,7 +382,6 @@ mdp:/usr/lib/gcc/x86_64-linux-gnu/12/include/stdarg.h mdp:/usr/lib/gcc/x86_64-linux-gnu/12/include/stdbool.h mdp:/usr/lib/gcc/x86_64-linux-gnu/12/include/stddef.h -/home/flower/code/camera/flyLink/skylink_qt_station/src/MainWindow.cpp /home/flower/code/camera/flyLink/skylink_qt_station/src/GroundReceiver.h mmc:Q_OBJECT mdp:/home/flower/code/camera/flyLink/skylink_qt_station/src/GroundReceiver.h @@ -990,13 +938,22 @@ mdp:/usr/lib/gcc/x86_64-linux-gnu/12/include/stdbool.h mdp:/usr/lib/gcc/x86_64-linux-gnu/12/include/stddef.h mdp:/usr/lib/gcc/x86_64-linux-gnu/12/include/xmmintrin.h -/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfoReceiver.h +/home/flower/code/camera/flyLink/skylink_qt_station/src/MainWindow.cpp +/home/flower/code/camera/flyLink/skylink_qt_station/src/MainWindow.h mmc:Q_OBJECT - mdp:/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfoReceiver.h + mdp:/home/flower/code/camera/flyLink/skylink_qt_station/src/MainWindow.h mdp:/home/flower/code/camera/flyLink/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/moc_predefs.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QDateTime + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QFlags + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QIODevice + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QList + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QMetaType mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QObject + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QSharedDataPointer mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QString + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QTimer + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QUrl + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QVariant mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/q20memory.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/q20type_traits.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qalgorithms.h @@ -1008,6 +965,7 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qatomic.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qatomic_cxx11.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qbasicatomic.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qbasictimer.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qbindingstorage.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qbytearray.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qbytearrayalgorithms.h @@ -1024,6 +982,7 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontainerinfo.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontainertools_impl.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontiguouscache.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcryptographichash.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdarwinhelpers.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdatastream.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdatetime.h @@ -1042,11 +1001,13 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qiodevicebase.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qiterable.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qiterator.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qline.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qlist.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qlocale.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qlogging.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmalloc.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmap.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmargins.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmath.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmetacontainer.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qmetatype.h @@ -1059,7 +1020,9 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qobjectdefs_impl.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qoverload.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qpair.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qpoint.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qprocessordetection.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qrect.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qrefcount.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qscopedpointer.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qscopeguard.h @@ -1068,6 +1031,7 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qshareddata_impl.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qsharedpointer.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qsharedpointer_impl.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qsize.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qstring.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qstringalgorithms.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qstringbuilder.h @@ -1089,6 +1053,7 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtdeprecationmarkers.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtenvironmentvariables.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtextstream.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtimer.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtmetamacros.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtnoop.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtpreprocessorsupport.h @@ -1099,21 +1064,80 @@ mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtversionchecks.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtypeinfo.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qtypes.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qurl.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qutf8stringview.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qvariant.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qvarlengtharray.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qversiontagging.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qxptype_traits.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/QImage + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qaction.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qbitmap.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qbrush.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qcolor.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qcursor.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qfont.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qfontinfo.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qfontmetrics.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qicon.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qimage.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qkeysequence.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpaintdevice.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpalette.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpicture.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpixelformat.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpixmap.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qpolygon.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qregion.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qrgb.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qrgba64.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtextdocument.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtgui-config.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtguiexports.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtguiglobal.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtransform.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qwindowdefs.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QHostAddress + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkAccessManager + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkReply + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkRequest + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QSslConfiguration + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QSslPreSharedKeyAuthenticator + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QTcpSocket mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QUdpSocket mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qabstractsocket.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qhostaddress.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkaccessmanager.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkreply.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkrequest.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qssl.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslcertificate.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslconfiguration.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslerror.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslpresharedkeyauthenticator.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslsocket.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtcpsocket.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetwork-config.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetworkexports.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetworkglobal.h mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qudpsocket.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/QLabel + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/QMainWindow + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/QPushButton + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qabstractbutton.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qframe.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qlabel.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qmainwindow.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qpushbutton.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qsizepolicy.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qtabwidget.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qtwidgets-config.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qtwidgetsexports.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qtwidgetsglobal.h + mdp:/home/flower/app/Qt/6.5.3/gcc_64/include/QtWidgets/qwidget.h mdp:/home/flower/code/camera/flyLink/skylink_qt_station/protocol/protocol.h mdp:/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfo.h + mdp:/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfoReceiver.h mdp:/usr/include/alloca.h mdp:/usr/include/asm-generic/errno-base.h mdp:/usr/include/asm-generic/errno.h @@ -1369,7 +1393,5 @@ mdp:/usr/lib/gcc/x86_64-linux-gnu/12/include/stdarg.h mdp:/usr/lib/gcc/x86_64-linux-gnu/12/include/stdbool.h mdp:/usr/lib/gcc/x86_64-linux-gnu/12/include/stddef.h -/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfoReceiver.cpp -/home/flower/code/camera/flyLink/skylink_qt_station/src/DeviceInfo.h -/home/flower/code/camera/flyLink/skylink_qt_station/src/DataLogger.cpp -/home/flower/code/camera/flyLink/skylink_qt_station/src/DataLogger.h +/home/flower/code/camera/flyLink/skylink_qt_station/src/GroundReceiver.cpp +/home/flower/code/camera/flyLink/skylink_qt_station/src/main.cpp diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station index ab8b963..902238e 100755 Binary files a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station and b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station differ diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/UVLADIE3JM/moc_MainWindow.cpp b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/UVLADIE3JM/moc_MainWindow.cpp index 4661c3e..5c3f7fc 100644 --- a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/UVLADIE3JM/moc_MainWindow.cpp +++ b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/UVLADIE3JM/moc_MainWindow.cpp @@ -8,6 +8,7 @@ #include "../../../../src/MainWindow.h" #include +#include #include #if __has_include() diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/UVLADIE3JM/moc_MainWindow.cpp.d b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/UVLADIE3JM/moc_MainWindow.cpp.d index 973b24d..a029da2 100644 --- a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/UVLADIE3JM/moc_MainWindow.cpp.d +++ b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/UVLADIE3JM/moc_MainWindow.cpp.d @@ -1,9 +1,16 @@ /home/flower/code/camera/flyLink/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/UVLADIE3JM/moc_MainWindow.cpp: /home/flower/code/camera/flyLink/skylink_qt_station/src/MainWindow.h \ /home/flower/code/camera/flyLink/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/moc_predefs.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QDateTime \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QFlags \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QIODevice \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QList \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QMetaType \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QObject \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QSharedDataPointer \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QString \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QTimer \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QUrl \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QVariant \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/q20memory.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/q20type_traits.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qalgorithms.h \ @@ -32,6 +39,7 @@ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontainerinfo.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontainertools_impl.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontiguouscache.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcryptographichash.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdarwinhelpers.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdatastream.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdatetime.h \ @@ -147,10 +155,24 @@ /home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtransform.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qwindowdefs.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QHostAddress \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkAccessManager \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkReply \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkRequest \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QSslConfiguration \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QSslPreSharedKeyAuthenticator \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QTcpSocket \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QUdpSocket \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qabstractsocket.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qhostaddress.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkaccessmanager.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkreply.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkrequest.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qssl.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslcertificate.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslconfiguration.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslerror.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslpresharedkeyauthenticator.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslsocket.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtcpsocket.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetwork-config.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetworkexports.h \ diff --git a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/deps b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/deps index 3cb4c05..484b841 100644 --- a/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/deps +++ b/skylink_qt_station/build/Desktop_Qt_6_5_3_GCC_64bit-Debug/skylink_station_autogen/deps @@ -1,11 +1,18 @@ skylink_station_autogen/timestamp: \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QDateTime \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QDebug \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QFlags \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QIODevice \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QList \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QMap \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QMetaType \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QObject \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QSharedDataPointer \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QString \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QThread \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QTimer \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QUrl \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/QVariant \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/q20memory.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/q20type_traits.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qalgorithms.h \ @@ -34,6 +41,7 @@ skylink_station_autogen/timestamp: \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontainerinfo.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontainertools_impl.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcontiguouscache.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qcryptographichash.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdarwinhelpers.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdatastream.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtCore/qdatetime.h \ @@ -152,10 +160,24 @@ skylink_station_autogen/timestamp: \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qtransform.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtGui/qwindowdefs.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QHostAddress \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkAccessManager \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkReply \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QNetworkRequest \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QSslConfiguration \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QSslPreSharedKeyAuthenticator \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QTcpSocket \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/QUdpSocket \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qabstractsocket.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qhostaddress.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkaccessmanager.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkreply.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qnetworkrequest.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qssl.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslcertificate.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslconfiguration.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslerror.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslpresharedkeyauthenticator.h \ + /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qsslsocket.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtcpsocket.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetwork-config.h \ /home/flower/app/Qt/6.5.3/gcc_64/include/QtNetwork/qtnetworkexports.h \ diff --git a/skylink_ros2_ws/sent_log.txt b/skylink_ros2_ws/sent_log.txt deleted file mode 100644 index 2510c8d..0000000 --- a/skylink_ros2_ws/sent_log.txt +++ /dev/null @@ -1,72 +0,0 @@ ---- Session Started: 2026-02-02 15:40:47 --- ---- Session Started: 2026-02-02 16:12:35 --- ---- Session Started: 2026-02-02 16:14:58 --- ---- Session Started: 2026-02-02 16:16:59 --- -[2026-02-02 16:17:00] Sent: photo_20260202_161700_000.jpg Size: 551838 Total Sent: 1 -[2026-02-02 16:17:00] Sent: photo_20260202_161700_001.jpg Size: 411948 Total Sent: 2 -[2026-02-02 16:17:01] Sent: photo_20260202_161701_002.jpg Size: 376731 Total Sent: 3 -[2026-02-02 16:17:01] Sent: photo_20260202_161701_003.jpg Size: 377754 Total Sent: 4 -[2026-02-02 16:17:02] Sent: photo_20260202_161702_004.jpg Size: 371593 Total Sent: 5 -[2026-02-02 16:17:02] Sent: photo_20260202_161702_005.jpg Size: 385420 Total Sent: 6 ---- Session Started: 2026-02-02 16:23:14 --- -[2026-02-02 16:23:14] Sent: photo_20260202_161700_000.jpg Size: 551838 Total Sent: 1 -[2026-02-02 16:23:14] Sent: photo_20260202_161700_001.jpg Size: 411948 Total Sent: 2 -[2026-02-02 16:23:14] Sent: photo_20260202_161701_002.jpg Size: 376731 Total Sent: 3 -[2026-02-02 16:23:14] Sent: photo_20260202_161701_003.jpg Size: 377754 Total Sent: 4 -[2026-02-02 16:23:14] Sent: photo_20260202_161702_004.jpg Size: 371593 Total Sent: 5 -[2026-02-02 16:23:14] Sent: photo_20260202_161702_005.jpg Size: 385420 Total Sent: 6 -[2026-02-02 16:23:14] Sent: photo_20260202_162314_000.jpg Size: 594448 Total Sent: 7 -[2026-02-02 16:23:15] Sent: photo_20260202_162315_001.jpg Size: 416092 Total Sent: 8 -[2026-02-02 16:23:15] Sent: photo_20260202_162315_002.jpg Size: 448451 Total Sent: 9 -[2026-02-02 16:23:16] Sent: photo_20260202_162316_003.jpg Size: 447612 Total Sent: 10 -[2026-02-02 16:23:16] Sent: photo_20260202_162316_004.jpg Size: 441193 Total Sent: 11 -[2026-02-02 16:23:17] Sent: photo_20260202_162317_005.jpg Size: 465881 Total Sent: 12 -[2026-02-02 16:23:17] Sent: photo_20260202_162317_006.jpg Size: 446361 Total Sent: 13 -[2026-02-02 16:23:18] Sent: photo_20260202_162318_007.jpg Size: 415256 Total Sent: 14 -[2026-02-02 16:23:18] Sent: photo_20260202_162318_008.jpg Size: 415862 Total Sent: 15 -[2026-02-02 16:23:19] Sent: photo_20260202_162319_009.jpg Size: 415374 Total Sent: 16 ---- Session Started: 2026-02-02 16:28:39 --- -[2026-02-02 16:28:39] Sent: photo_000_20260202_162839_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 584359 Total Sent: 1 -[2026-02-02 16:28:40] Sent: photo_001_20260202_162840_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 583744 Total Sent: 2 -[2026-02-02 16:28:40] Sent: photo_002_20260202_162840_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 583338 Total Sent: 3 -[2026-02-02 16:28:41] Sent: photo_003_20260202_162841_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 571135 Total Sent: 4 -[2026-02-02 16:28:41] Sent: photo_004_20260202_162841_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 570012 Total Sent: 5 -[2026-02-02 16:28:42] Sent: photo_005_20260202_162842_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 570419 Total Sent: 6 -[2026-02-02 16:28:42] Sent: photo_006_20260202_162842_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 582702 Total Sent: 7 -[2026-02-02 16:28:43] Sent: photo_007_20260202_162843_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 582108 Total Sent: 8 ---- Session Started: 2026-02-02 16:32:10 --- -[2026-02-02 16:32:13] Sent: photo_000_20260202_163213_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 559873 Total Sent: 1 -[2026-02-02 16:32:15] Sent: photo_001_20260202_163215_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 559766 Total Sent: 2 ---- Session Started: 2026-02-02 16:32:54 --- -[2026-02-02 16:32:55] Sent: photo_000_20260202_163213_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 559873 Total Sent: 1 -[2026-02-02 16:32:55] Sent: photo_001_20260202_163215_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 559766 Total Sent: 2 -[2026-02-02 16:32:56] Sent: photo_000_20260202_163256_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 558412 Total Sent: 3 -[2026-02-02 16:32:57] Sent: photo_001_20260202_163257_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 601159 Total Sent: 4 -[2026-02-02 16:32:58] Sent: photo_002_20260202_163258_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 558166 Total Sent: 5 -[2026-02-02 16:32:59] Sent: photo_003_20260202_163259_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 600601 Total Sent: 6 -[2026-02-02 16:33:00] Sent: photo_004_20260202_163300_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 600806 Total Sent: 7 ---- Session Started: 2026-02-02 16:34:57 --- ---- Session Started: 2026-02-02 16:36:29 --- -[2026-02-02 16:39:13] Sent: photo_000_20260202_163913_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 500250 Total Sent: 1 -[2026-02-02 16:39:14] Sent: photo_001_20260202_163914_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 499410 Total Sent: 2 -[2026-02-02 16:39:15] Sent: photo_002_20260202_163915_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 499874 Total Sent: 3 -[2026-02-02 16:39:16] Sent: photo_003_20260202_163916_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 499487 Total Sent: 4 -[2026-02-02 16:39:17] Sent: photo_004_20260202_163917_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 498681 Total Sent: 5 -[2026-02-02 16:39:52] Sent: photo_005_20260202_163952_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 603995 Total Sent: 6 -[2026-02-02 16:39:54] Sent: photo_006_20260202_163954_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 595479 Total Sent: 7 -[2026-02-02 16:39:56] Sent: photo_007_20260202_163956_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 643671 Total Sent: 8 -[2026-02-02 16:39:58] Sent: photo_008_20260202_163958_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 623669 Total Sent: 9 -[2026-02-02 16:40:00] Sent: photo_009_20260202_164000_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 601373 Total Sent: 10 -[2026-02-02 16:40:17] Sent: photo_010_20260202_164017_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 630691 Total Sent: 11 -[2026-02-02 16:40:19] Sent: photo_011_20260202_164019_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 687730 Total Sent: 12 -[2026-02-02 16:40:21] Sent: photo_012_20260202_164021_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 653137 Total Sent: 13 -[2026-02-02 16:40:23] Sent: photo_013_20260202_164023_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 628483 Total Sent: 14 ---- Session Started: 2026-02-02 16:53:03 --- -[2026-02-02 16:53:30] Sent: photo_000_20260202_165330_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 473529 Total Sent: 1 -[2026-02-02 16:53:32] Sent: photo_001_20260202_165332_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 473852 Total Sent: 2 -[2026-02-02 16:53:34] Sent: photo_002_20260202_165334_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 473945 Total Sent: 3 -[2026-02-02 16:53:36] Sent: photo_003_20260202_165336_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 606768 Total Sent: 4 -[2026-02-02 16:54:24] Sent: photo_004_20260202_165424_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 583563 Total Sent: 5 -[2026-02-02 16:54:26] Sent: photo_005_20260202_165426_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 602259 Total Sent: 6 -[2026-02-02 16:54:28] Sent: photo_006_20260202_165428_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 597611 Total Sent: 7 -[2026-02-02 16:54:30] Sent: photo_007_20260202_165430_GPS_lat0.000000_lon0.000000_alt0.0.jpg Size: 583412 Total Sent: 8 diff --git a/skylink_ros2_ws/src/skylink_bridge/include/skylink_bridge/camera_driver_node.h b/skylink_ros2_ws/src/skylink_bridge/include/skylink_bridge/camera_driver_node.h index 9788cd4..d72d7aa 100644 --- a/skylink_ros2_ws/src/skylink_bridge/include/skylink_bridge/camera_driver_node.h +++ b/skylink_ros2_ws/src/skylink_bridge/include/skylink_bridge/camera_driver_node.h @@ -246,15 +246,12 @@ private: void handle_status_api(const httplib::Request& req, httplib::Response& res); /** - * @brief 简单的 JSON 解析辅助函数 - * @param json_str JSON 字符串 - * @param key 键名 - * @param default_value 默认值 - * @return 解析的值或默认值 + * @brief 简单的 JSON 解析辅助函数 - double 特化 */ - template - T parse_json_value(const std::string& json_str, const std::string& key, T default_value) { - // 默认实现返回默认值,特化版本在cpp中实现 - return default_value; - } + double parse_json_value_double(const std::string& json_str, const std::string& key, double default_value); + + /** + * @brief 简单的 JSON 解析辅助函数 - int 特化 + */ + int parse_json_value_int(const std::string& json_str, const std::string& key, int default_value); }; diff --git a/skylink_ros2_ws/src/skylink_bridge/src/camera_driver_node.cpp b/skylink_ros2_ws/src/skylink_bridge/src/camera_driver_node.cpp index f2c9dde..81fc8e6 100644 --- a/skylink_ros2_ws/src/skylink_bridge/src/camera_driver_node.cpp +++ b/skylink_ros2_ws/src/skylink_bridge/src/camera_driver_node.cpp @@ -519,14 +519,12 @@ void CameraDriverNode::capture_photo(TransmissionMode mode) { // 获取 GPS 信息 double lat = 0.0, lon = 0.0, alt = 0.0; - bool has_gps = false; { std::lock_guard gps_lock(gps_mutex_); if (has_gps_fix_) { lat = latest_gps_fix_.latitude; lon = latest_gps_fix_.longitude; alt = latest_gps_fix_.altitude; - has_gps = true; } } @@ -751,6 +749,103 @@ void CameraDriverNode::http_server_worker() { } } +/** + * @brief 处理状态查询 API 请求 + */ +void CameraDriverNode::handle_status_api(const httplib::Request& /* req */, httplib::Response& res) { + try { + // 构建 JSON 响应 + std::ostringstream json; + json << "{" + << "\"device_name\":\"" << device_name_ << "\"," + << "\"image_width\":" << image_width_ << "," + << "\"image_height\":" << image_height_ << "," + << "\"current_fps\":" << std::fixed << std::setprecision(1) << current_fps_ << "," + << "\"total_frames\":" << frame_counter_ << "," + << "\"total_photos\":" << total_photos_saved_.load() << "," + << "\"is_capturing\":" << (is_capturing_ ? "true" : "false") + << "}"; + + res.status = 200; + res.set_content(json.str(), "application/json"); + + } catch (const std::exception& e) { + std::string error_json = R"({"error":"服务器错误: )" + std::string(e.what()) + "\"}"; + res.status = 500; + res.set_content(error_json, "application/json"); + RCLCPP_ERROR(this->get_logger(), "HTTP API 状态查询错误: %s", e.what()); + } +} + +/** + * @brief JSON 解析辅助函数 - double 特化 + */ +double CameraDriverNode::parse_json_value_double(const std::string& json_str, const std::string& key, double default_value) { + std::string search_key = "\"" + key + "\":"; + size_t pos = json_str.find(search_key); + if (pos == std::string::npos) { + return default_value; + } + + pos += search_key.length(); + // 跳过空格 + while (pos < json_str.length() && (json_str[pos] == ' ' || json_str[pos] == '\t')) { + pos++; + } + + // 提取数字 + size_t end_pos = pos; + while (end_pos < json_str.length() && + (std::isdigit(json_str[end_pos]) || json_str[end_pos] == '.' || + json_str[end_pos] == '-' || json_str[end_pos] == '+' || json_str[end_pos] == 'e' || json_str[end_pos] == 'E')) { + end_pos++; + } + + if (end_pos > pos) { + try { + return std::stod(json_str.substr(pos, end_pos - pos)); + } catch (...) { + return default_value; + } + } + + return default_value; +} + +/** + * @brief JSON 解析辅助函数 - int 特化 + */ +int CameraDriverNode::parse_json_value_int(const std::string& json_str, const std::string& key, int default_value) { + std::string search_key = "\"" + key + "\":"; + size_t pos = json_str.find(search_key); + if (pos == std::string::npos) { + return default_value; + } + + pos += search_key.length(); + // 跳过空格 + while (pos < json_str.length() && (json_str[pos] == ' ' || json_str[pos] == '\t')) { + pos++; + } + + // 提取整数 + size_t end_pos = pos; + while (end_pos < json_str.length() && + (std::isdigit(json_str[end_pos]) || json_str[end_pos] == '-' || json_str[end_pos] == '+')) { + end_pos++; + } + + if (end_pos > pos) { + try { + return std::stoi(json_str.substr(pos, end_pos - pos)); + } catch (...) { + return default_value; + } + } + + return default_value; +} + /** * @brief 处理触发拍照 API 请求 */ @@ -760,10 +855,10 @@ void CameraDriverNode::handle_trigger_capture_api(const httplib::Request& req, h std::string json_body = req.body; // 提取参数(简单的 JSON 解析) - double duration = parse_json_value(json_body, "duration", 0.0); - int count = parse_json_value(json_body, "count", 0); - double interval = parse_json_value(json_body, "interval", 0.0); - int transmission_mode = parse_json_value(json_body, "transmission_mode", 0); + double duration = parse_json_value_double(json_body, "duration", 0.0); + int count = parse_json_value_int(json_body, "count", 0); + double interval = parse_json_value_double(json_body, "interval", 0.0); + int transmission_mode = parse_json_value_int(json_body, "transmission_mode", 0); // 参数验证 if (duration < 0 || count < 0 || interval < 0) { @@ -809,7 +904,7 @@ void CameraDriverNode::handle_trigger_capture_api(const httplib::Request& req, h // 构建 JSON 响应 std::ostringstream json_stream; - json_stream << R"({"success":true,"message":"拍照任务已启动 ()" << mode_str << R"()","total_photos":)" + json_stream << "{\"success\":true,\"message\":\"拍照任务已启动 (" << mode_str << ")\",\"total_photos\":" << total_photos_saved_.load() << "}"; std::string response_json = json_stream.str(); @@ -828,102 +923,6 @@ void CameraDriverNode::handle_trigger_capture_api(const httplib::Request& req, h } } -/** - * @brief 处理状态查询 API 请求 - */ -void CameraDriverNode::handle_status_api(const httplib::Request& req, httplib::Response& res) { - try { - // 构建 JSON 响应 - std::ostringstream json; - json << "{" - << "\"device_name\":\"" << device_name_ << "\"," - << "\"image_width\":" << image_width_ << "," - << "\"image_height\":" << image_height_ << "," - << "\"current_fps\":" << std::fixed << std::setprecision(1) << current_fps_ << "," - << "\"total_frames\":" << frame_counter_ << "," - << "\"total_photos\":" << total_photos_saved_.load() << "," - << "\"is_capturing\":" << (is_capturing_ ? "true" : "false") - << "}"; - - res.status = 200; - res.set_content(json.str(), "application/json"); - - } catch (const std::exception& e) { - std::string error_json = R"({"error":"服务器错误: )" + std::string(e.what()) + "\"}"; - res.status = 500; - res.set_content(error_json, "application/json"); - RCLCPP_ERROR(this->get_logger(), "HTTP API 状态查询错误: %s", e.what()); - } -} - -/** - * @brief JSON 解析辅助函数(简单实现) - */ -template<> -double CameraDriverNode::parse_json_value(const std::string& json_str, const std::string& key, double default_value) { - std::string search_key = "\"" + key + "\":"; - size_t pos = json_str.find(search_key); - if (pos == std::string::npos) { - return default_value; - } - - pos += search_key.length(); - // 跳过空格 - while (pos < json_str.length() && (json_str[pos] == ' ' || json_str[pos] == '\t')) { - pos++; - } - - // 提取数字 - size_t end_pos = pos; - while (end_pos < json_str.length() && - (std::isdigit(json_str[end_pos]) || json_str[end_pos] == '.' || - json_str[end_pos] == '-' || json_str[end_pos] == '+' || json_str[end_pos] == 'e' || json_str[end_pos] == 'E')) { - end_pos++; - } - - if (end_pos > pos) { - try { - return std::stod(json_str.substr(pos, end_pos - pos)); - } catch (...) { - return default_value; - } - } - - return default_value; -} - -template<> -int CameraDriverNode::parse_json_value(const std::string& json_str, const std::string& key, int default_value) { - std::string search_key = "\"" + key + "\":"; - size_t pos = json_str.find(search_key); - if (pos == std::string::npos) { - return default_value; - } - - pos += search_key.length(); - // 跳过空格 - while (pos < json_str.length() && (json_str[pos] == ' ' || json_str[pos] == '\t')) { - pos++; - } - - // 提取整数 - size_t end_pos = pos; - while (end_pos < json_str.length() && - (std::isdigit(json_str[end_pos]) || json_str[end_pos] == '-' || json_str[end_pos] == '+')) { - end_pos++; - } - - if (end_pos > pos) { - try { - return std::stoi(json_str.substr(pos, end_pos - pos)); - } catch (...) { - return default_value; - } - } - - return default_value; -} - /** * @brief 主函数 */