Progress!

Masked error caused by saving dbc while editor is open that causes
msg IDs to go crazy by making editor modal, but that affects all
other windows, so might be a better fix.

Added new value type of VALUE_STRING, probably better named
ENUMERATED_STRING, and it uses the table in the editor to define
the enum.

Fixed a bug in the signal viewer load when a signal is not matched
(I found it by renaming a signal and then loading)
This commit is contained in:
Andy Huska
2022-09-20 16:23:18 -05:00
parent 536122f3b5
commit e6058ead34
6 changed files with 34 additions and 7 deletions
+6
View File
@@ -576,6 +576,9 @@ DBC_SIGNAL* DBCFile::parseSignalLine(QString line, DBC_MESSAGE *msg)
sig.valType = DP_FLOAT;
sig.intelByteOrder = true;
break;
case 7: //double point float in little endian
sig.valType = VALUE_STRING;
break;
}
sig.factor = match.captured(6 + offset).toDouble();
sig.bias = match.captured(7 + offset).toDouble();
@@ -1443,6 +1446,9 @@ bool DBCFile::saveFile(QString fileName)
case STRING:
msgOutput.append("4-");
break;
case VALUE_STRING:
msgOutput.append("7-");
break;
default:
msgOutput.append("0-");
break;