Merge branch 'master' of github.com:collin80/SavvyCAN

This commit is contained in:
Collin Kidder
2021-03-18 19:44:20 -04:00
5 changed files with 29 additions and 9 deletions
+3 -4
View File
@@ -48,15 +48,14 @@ http://www.qcustomplot.com/
However, this source code is integrated into the source for SavvyCAN and one isn't required However, this source code is integrated into the source for SavvyCAN and one isn't required
to download it separately. to download it separately.
This project requires 5.10.0 or higher because of a dependency on QtSerialBus. However, you will get This project requires 5.13.0 or higher because of a dependency on QtSerialBus and other new additions to QT.
even more SerialBus goodness if you use QT 5.11 or higher.
NOTE: QT6 currently lacks support for QtSerialBus and many other QT sub-features. At this time you cannot NOTE: QT6 currently lacks support for QtSerialBus and many other QT sub-features. At this time you cannot
use QT6 to compile SavvyCAN. Support for QT6 should be possible around QT6.2. use QT6 to compile SavvyCAN. Support for QT6 should be possible around QT6.2.
## Instructions for compiling: ## Instructions for compiling:
[Download the newest stable version of Qt directly from qt.io](https://www.qt.io/download/) (You need 5.10.x or newer) [Download the newest stable version of Qt directly from qt.io](https://www.qt.io/download/) (You need 5.13.x or newer)
```sh ```sh
cd ~ cd ~
@@ -65,7 +64,7 @@ git clone https://github.com/collin80/SavvyCAN.git
cd SavvyCAN cd SavvyCAN
~/Qt/5.10/gcc_64/bin/qmake ~/Qt/5.13/gcc_64/bin/qmake
make make
``` ```
+1 -1
View File
@@ -1585,7 +1585,7 @@ bool FrameFileIO::loadCanalyzerASC(QString filename, QVector<CANFrame>* frames)
else else
{ {
thisFrame.setFrameId(tokens[2].toUInt(nullptr, 16)); thisFrame.setFrameId(tokens[2].toUInt(nullptr, 16));
thisFrame.setExtendedFrameFormat(false); thisFrame.setExtendedFrameFormat(thisFrame.frameId() > 0x7FF); //some .asc files have extended IDs without 'x'
} }
int payloadLen = tokens[5].toInt(); int payloadLen = tokens[5].toInt();
+11 -1
View File
@@ -430,7 +430,17 @@ void FrameSenderWindow::handleTick()
for (int i = 0; i < sendingData.count(); i++) for (int i = 0; i < sendingData.count(); i++)
{ {
sendData = &sendingData[i]; sendData = &sendingData[i];
if (!sendData->enabled) continue; //abort any processing on this if it is not enabled. if (!sendData->enabled)
{
if (sendData->triggers.count() > 0)
{
for (int j = 0; j < sendData->triggers.count(); j++) //resetting currCount when line is disabled
{
sendData->triggers[j].currCount = 0;
}
}
continue; //abort any processing on this if it is not enabled.
}
if (sendData->triggers.count() == 0) return; if (sendData->triggers.count() == 0) return;
for (int j = 0; j < sendData->triggers.count(); j++) for (int j = 0; j < sendData->triggers.count(); j++)
{ {
+9 -1
View File
@@ -357,7 +357,15 @@ void NewGraphDialog::handleDataLenUpdate()
void NewGraphDialog::copySignalToParamsUI() void NewGraphDialog::copySignalToParamsUI()
{ {
DBC_MESSAGE *msg = dbcHandler->getFileByIdx(0)->messageHandler->findMsgByName(ui->cbMessages->currentText()); assocSignal = nullptr;
DBC_MESSAGE *msg = nullptr;
for(int i = 0; i < dbcHandler->getFileCount(); i++)
{
msg = dbcHandler->getFileByIdx(i)->messageHandler->findMsgByName(ui->cbMessages->currentText());
if (msg) break;
}
if (!msg) return; if (!msg) return;
DBC_SIGNAL *sig = msg->sigHandler->findSignalByName(ui->cbSignals->currentText()); DBC_SIGNAL *sig = msg->sigHandler->findSignalByName(ui->cbSignals->currentText());
if (!sig) return; if (!sig) return;
+3
View File
@@ -345,8 +345,11 @@ void ScriptingWindow::revertScript()
void ScriptingWindow::recompileScript() void ScriptingWindow::recompileScript()
{ {
if (currentScript)
{
currentScript->scriptText = editor->toPlainText(); currentScript->scriptText = editor->toPlainText();
currentScript->compileScript(); currentScript->compileScript();
}
} }
void ScriptingWindow::clickedLogClear() void ScriptingWindow::clickedLogClear()