Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarpicva committed Nov 8, 2022
1 parent 6ec2b00 commit 99b2dcf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions PicoAPRSTrackerConfig.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PicoAPRSTrackerConfig

A little Qt5 UI application to make reading and writing the PicoAPRSTracker configuration easier, via the USB port.
5 changes: 5 additions & 0 deletions picoaprstrackerconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <QSerialPortInfo>
#include <QTimer>

#include <QDebug>

PicoAPRSTrackerConfig::PicoAPRSTrackerConfig(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::PicoAPRSTrackerConfig)
Expand Down Expand Up @@ -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.");
Expand All @@ -53,6 +56,8 @@ void PicoAPRSTrackerConfig::connectToDevice()
void PicoAPRSTrackerConfig::on_readyRead()
{
inbytes.append(sport->readAll());
qDebug()<<"on_readyRead..."<<inbytes;

if(inbytes.count('|') == 5) { // six delimited fields
ui->plainTextEdit->appendPlainText(inbytes);
const QString tmp = inbytes;
Expand Down
11 changes: 6 additions & 5 deletions picoaprstrackerconfig.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>401</width>
<height>325</height>
<width>442</width>
<height>385</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -200,8 +200,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>401</width>
<height>21</height>
<width>442</width>
<height>26</height>
</rect>
</property>
<widget class="QMenu" name="menu_File">
Expand All @@ -216,6 +216,7 @@
</property>
<addaction name="action_Read_from_Device"/>
<addaction name="action_Write_to_Device"/>
<addaction name="action_Serial_Port"/>
</widget>
<addaction name="menu_File"/>
<addaction name="menu_Config"/>
Expand All @@ -238,7 +239,7 @@
</action>
<action name="action_Serial_Port">
<property name="text">
<string>&amp;Serial Port</string>
<string>Choose &amp;Serial Port</string>
</property>
</action>
</widget>
Expand Down

0 comments on commit 99b2dcf

Please sign in to comment.