Added a new window used to edit parameters for my motor inverter control board. Fixed firmware updater - tested to work now!

This commit is contained in:
Collin Kidder
2016-08-09 18:44:53 -04:00
parent 6529b89b45
commit f0e0a8d705
13 changed files with 863 additions and 119 deletions
+5 -1
View File
@@ -188,6 +188,7 @@ void CANFrameModel::recalcOverwrite()
QVariant CANFrameModel::data(const QModelIndex &index, int role) const
{
int dLen;
QString tempString;
if (!index.isValid())
return QVariant();
@@ -220,7 +221,10 @@ QVariant CANFrameModel::data(const QModelIndex &index, int role) const
return QString::number(thisFrame.len);
break;
case 6: //data
for (int i = 0; i < thisFrame.len; i++)
dLen = thisFrame.len;
if (dLen < 0) dLen = 0;
if (dLen > 8) dLen = 8;
for (int i = 0; i < dLen; i++)
{
tempString.append(Utility::formatNumber(thisFrame.data[i]));
tempString.append(" ");