From 99b2dcfdc4cc99ed65fe846b49c404f65a61638f Mon Sep 17 00:00:00 2001 From: guitarpicva Date: Tue, 8 Nov 2022 09:54:25 -0500 Subject: [PATCH] add readme --- PicoAPRSTrackerConfig.pro | 3 +++ README.md | 3 +++ picoaprstrackerconfig.cpp | 5 +++++ picoaprstrackerconfig.ui | 11 ++++++----- 4 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 README.md diff --git a/PicoAPRSTrackerConfig.pro b/PicoAPRSTrackerConfig.pro index 8f58da1..d466847 100644 --- a/PicoAPRSTrackerConfig.pro +++ b/PicoAPRSTrackerConfig.pro @@ -22,3 +22,6 @@ FORMS += \ qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target + +DISTFILES += \ + README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ad4a791 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +PicoAPRSTrackerConfig + +A little Qt5 UI application to make reading and writing the PicoAPRSTracker configuration easier, via the USB port. diff --git a/picoaprstrackerconfig.cpp b/picoaprstrackerconfig.cpp index 94ecd23..0c22615 100644 --- a/picoaprstrackerconfig.cpp +++ b/picoaprstrackerconfig.cpp @@ -7,6 +7,8 @@ #include #include +#include + PicoAPRSTrackerConfig::PicoAPRSTrackerConfig(QWidget *parent) : QMainWindow(parent) , ui(new Ui::PicoAPRSTrackerConfig) @@ -44,6 +46,7 @@ void PicoAPRSTrackerConfig::connectToDevice() sport->setBaudRate(QSerialPort::Baud115200); connect(sport, &QSerialPort::readyRead, this, &PicoAPRSTrackerConfig::on_readyRead); sport->write("READCONFIG|\r"); + qDebug()<<"read config..."; } else { QMessageBox::warning(this, "Unable to Connect", "Unable to connect to the chosen serial port."); @@ -53,6 +56,8 @@ void PicoAPRSTrackerConfig::connectToDevice() void PicoAPRSTrackerConfig::on_readyRead() { inbytes.append(sport->readAll()); + qDebug()<<"on_readyRead..."<plainTextEdit->appendPlainText(inbytes); const QString tmp = inbytes; diff --git a/picoaprstrackerconfig.ui b/picoaprstrackerconfig.ui index 47947a8..8fb7e1c 100644 --- a/picoaprstrackerconfig.ui +++ b/picoaprstrackerconfig.ui @@ -6,8 +6,8 @@ 0 0 - 401 - 325 + 442 + 385 @@ -200,8 +200,8 @@ 0 0 - 401 - 21 + 442 + 26 @@ -216,6 +216,7 @@ + @@ -238,7 +239,7 @@ - &Serial Port + Choose &Serial Port