Added DBC signal value table strings to graphs of signals with value

tables, incremented version number.
This commit is contained in:
Collin Kidder
2021-05-01 09:39:02 -04:00
parent e64e84d6fa
commit 1844695a78
4 changed files with 49 additions and 2 deletions
+16
View File
@@ -180,6 +180,22 @@ bool DBC_SIGNAL::processAsText(const CANFrame &frame, QString &outString, bool o
return true;
}
bool DBC_SIGNAL::getValueString(int64_t intVal, QString &outString)
{
if (valList.count() > 0) //if this is a value list type then look it up and display the proper string
{
for (int x = 0; x < valList.count(); x++)
{
if (valList.at(x).value == intVal)
{
outString = valList.at(x).descript;
return true;
}
}
}
return false;
}
QString DBC_SIGNAL::makePrettyOutput(double floatVal, int64_t intVal, bool outputName, bool isInteger)
{
QString outputString;