Finished switching over everything to the new can format (I hope). It
seems to function now but much more testing is needed.
This commit is contained in:
+17
-17
@@ -293,7 +293,7 @@ void FlowViewWindow::gotCenterTimeID(int32_t ID, double timestamp)
|
||||
memcpy(refBytes, currBytes, 8);
|
||||
}
|
||||
|
||||
memcpy(currBytes, frameCache.at(currentPosition).data, 8);
|
||||
memcpy(currBytes, frameCache.at(currentPosition).payload().data(), 8);
|
||||
|
||||
updateDataView();
|
||||
}
|
||||
@@ -696,23 +696,23 @@ void FlowViewWindow::timerTriggered()
|
||||
void FlowViewWindow::updateDataView()
|
||||
{
|
||||
|
||||
ui->txtCurr1->setText(Utility::formatNumber(currBytes[0]));
|
||||
ui->txtCurr2->setText(Utility::formatNumber(currBytes[1]));
|
||||
ui->txtCurr3->setText(Utility::formatNumber(currBytes[2]));
|
||||
ui->txtCurr4->setText(Utility::formatNumber(currBytes[3]));
|
||||
ui->txtCurr5->setText(Utility::formatNumber(currBytes[4]));
|
||||
ui->txtCurr6->setText(Utility::formatNumber(currBytes[5]));
|
||||
ui->txtCurr7->setText(Utility::formatNumber(currBytes[6]));
|
||||
ui->txtCurr8->setText(Utility::formatNumber(currBytes[7]));
|
||||
ui->txtCurr1->setText(Utility::formatNumber((char)currBytes[0]));
|
||||
ui->txtCurr2->setText(Utility::formatNumber((char)currBytes[1]));
|
||||
ui->txtCurr3->setText(Utility::formatNumber((char)currBytes[2]));
|
||||
ui->txtCurr4->setText(Utility::formatNumber((char)currBytes[3]));
|
||||
ui->txtCurr5->setText(Utility::formatNumber((char)currBytes[4]));
|
||||
ui->txtCurr6->setText(Utility::formatNumber((char)currBytes[5]));
|
||||
ui->txtCurr7->setText(Utility::formatNumber((char)currBytes[6]));
|
||||
ui->txtCurr8->setText(Utility::formatNumber((char)currBytes[7]));
|
||||
|
||||
ui->txtRef1->setText(Utility::formatNumber(refBytes[0]));
|
||||
ui->txtRef2->setText(Utility::formatNumber(refBytes[1]));
|
||||
ui->txtRef3->setText(Utility::formatNumber(refBytes[2]));
|
||||
ui->txtRef4->setText(Utility::formatNumber(refBytes[3]));
|
||||
ui->txtRef5->setText(Utility::formatNumber(refBytes[4]));
|
||||
ui->txtRef6->setText(Utility::formatNumber(refBytes[5]));
|
||||
ui->txtRef7->setText(Utility::formatNumber(refBytes[6]));
|
||||
ui->txtRef8->setText(Utility::formatNumber(refBytes[7]));
|
||||
ui->txtRef1->setText(Utility::formatNumber((char)refBytes[0]));
|
||||
ui->txtRef2->setText(Utility::formatNumber((char)refBytes[1]));
|
||||
ui->txtRef3->setText(Utility::formatNumber((char)refBytes[2]));
|
||||
ui->txtRef4->setText(Utility::formatNumber((char)refBytes[3]));
|
||||
ui->txtRef5->setText(Utility::formatNumber((char)refBytes[4]));
|
||||
ui->txtRef6->setText(Utility::formatNumber((char)refBytes[5]));
|
||||
ui->txtRef7->setText(Utility::formatNumber((char)refBytes[6]));
|
||||
ui->txtRef8->setText(Utility::formatNumber((char)refBytes[7]));
|
||||
|
||||
ui->flowView->setReference(refBytes, false);
|
||||
ui->flowView->updateData(currBytes, true);
|
||||
|
||||
@@ -336,13 +336,13 @@ void FrameInfoWindow::updateDetailsWindow(QString newID)
|
||||
baseNode->addChild(tempItem);
|
||||
|
||||
tempItem = new QTreeWidgetItem();
|
||||
tempItem->setText(0, tr(" Priority bits: ") + Utility::formatNumber( FilterUtility::getGMLanPriorityBits(targettedID)));
|
||||
tempItem->setText(0, tr(" Priority bits: ") + Utility::formatNumber( (uint64_t)FilterUtility::getGMLanPriorityBits(targettedID)));
|
||||
baseNode->addChild(tempItem);
|
||||
tempItem = new QTreeWidgetItem();
|
||||
tempItem->setText(0, tr(" Arbitration Id: ") + Utility::formatNumber( FilterUtility::getGMLanArbitrationId(targettedID)));
|
||||
tempItem->setText(0, tr(" Arbitration Id: ") + Utility::formatNumber( (uint64_t)FilterUtility::getGMLanArbitrationId(targettedID)));
|
||||
baseNode->addChild(tempItem);
|
||||
tempItem = new QTreeWidgetItem();
|
||||
tempItem->setText(0, tr(" Sender Id: ") + Utility::formatNumber( FilterUtility::getGMLanSenderId(targettedID)));
|
||||
tempItem->setText(0, tr(" Sender Id: ") + Utility::formatNumber( (uint64_t)FilterUtility::getGMLanSenderId(targettedID)));
|
||||
baseNode->addChild(tempItem);
|
||||
|
||||
}
|
||||
@@ -506,7 +506,7 @@ void FrameInfoWindow::updateDetailsWindow(QString newID)
|
||||
dataBase->addChild(tempItem);
|
||||
|
||||
tempItem = new QTreeWidgetItem();
|
||||
tempItem->setText(0, tr("Range: ") + Utility::formatNumber(minData[c]) + tr(" to ") + Utility::formatNumber(maxData[c]));
|
||||
tempItem->setText(0, tr("Range: ") + Utility::formatNumber((char)minData[c]) + tr(" to ") + Utility::formatNumber((char)maxData[c]));
|
||||
dataBase->addChild(tempItem);
|
||||
histBase->setText(0, tr("Histogram"));
|
||||
dataBase->addChild(histBase);
|
||||
|
||||
@@ -1153,7 +1153,7 @@ void GraphingWindow::createGraph(GraphParams ¶ms, bool createGraphParam)
|
||||
}
|
||||
else
|
||||
{
|
||||
params.x[j] = frameCache[k].timeStamp.microSeconds();
|
||||
params.x[j] = frameCache[k].timeStamp().microSeconds();
|
||||
}
|
||||
params.y[j] = (tempVal * params.scale) + params.bias;
|
||||
if (params.y[j] < yminval) yminval = params.y[j];
|
||||
|
||||
@@ -218,7 +218,7 @@ void ISOTP_InterpreterWindow::showDetailView()
|
||||
buildString.append(tr("Raw Payload: "));
|
||||
for (int i = 0; i < messages[rowNum].data.count(); i++)
|
||||
{
|
||||
buildString.append(Utility::formatNumber(messages[rowNum].data[i]));
|
||||
buildString.append(Utility::formatNumber((char)messages[rowNum].data[i]));
|
||||
buildString.append(" ");
|
||||
}
|
||||
buildString.append("\r\r");
|
||||
@@ -291,7 +291,7 @@ void ISOTP_InterpreterWindow::newISOMessage(ISOTP_MESSAGE msg)
|
||||
|
||||
for (int i = 0; i < msg.data.count(); i++)
|
||||
{
|
||||
tempString.append(Utility::formatNumber(msg.data[i]));
|
||||
tempString.append(Utility::formatNumber((char)msg.data[i]));
|
||||
tempString.append(" ");
|
||||
}
|
||||
ui->tableIsoFrames->setItem(rowNum, 5, new QTableWidgetItem(tempString));
|
||||
|
||||
@@ -116,7 +116,7 @@ void SnifferDelegate::paint(QPainter *painter, const QStyleOptionViewItem &optio
|
||||
painter->setOpacity(1.0);
|
||||
painter->setPen(QApplication::palette().color(QPalette::Text));
|
||||
painter->setFont(mainFont);
|
||||
painter->drawText(QRect(viewport.left(), viewport.top() + xSector + yOffset, xSpan, mainFontInfo->pixelSize()), Qt::AlignCenter, Utility::formatNumber(val));
|
||||
painter->drawText(QRect(viewport.left(), viewport.top() + xSector + yOffset, xSpan, mainFontInfo->pixelSize()), Qt::AlignCenter, Utility::formatNumber((char)val));
|
||||
}
|
||||
|
||||
QSize SnifferDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
|
||||
SnifferItem::SnifferItem(const CANFrame& pFrame, quint32 seq):
|
||||
mID(pFrame.ID)
|
||||
mID(pFrame.frameId())
|
||||
{
|
||||
for (int i = 0; i < 8; i++) {
|
||||
mNotch[i] =0;
|
||||
|
||||
Reference in New Issue
Block a user