Additional implementation of new connection system. The GVRET code can

now connect and run its thread.
This commit is contained in:
Collin Kidder
2016-03-26 20:17:10 -04:00
parent e7ded7737a
commit 0bd3a3b95b
14 changed files with 126 additions and 21 deletions
+18
View File
@@ -7,6 +7,7 @@
SerialWorker::SerialWorker(CANFrameModel *model, int base) : CANConnection(model, base)
{
qDebug() << "Serial Worker constructor";
serial = NULL;
rx_state = IDLE;
rx_step = 0;
@@ -39,6 +40,7 @@ SerialWorker::~SerialWorker()
void SerialWorker::run()
{
qDebug() << "Serial worker thread starting";
ticker = new QTimer;
connect(ticker, SIGNAL(timeout()), this, SLOT(handleTick()));
@@ -545,4 +547,20 @@ void SerialWorker::updatePortName(QString portName)
}
}
int SerialWorker::getNumBuses()
{
return 2;
}
QString SerialWorker::getConnTypeName()
{
return QString("GVRET");
}
void SerialWorker::updateBusSettings(CAN_Bus *bus)
{
int busNum = bus->busNum - busBase;
if (busNum < 0) return;
if (busNum >= numBuses) return;
qDebug() << "About to update bus " << busNum << " on GVRET";
}