Another fix for a graphing crash, added some prelim. stuff for UDS

This commit is contained in:
Collin Kidder
2016-02-07 22:29:06 -05:00
parent 69dbee7fec
commit 56dbb32589
5 changed files with 24 additions and 3 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ SOURCES += main.cpp\
dbc_classes.cpp \
dbcloadsavewindow.cpp \
fuzzingwindow.cpp \
udsscanwindow.cpp
udsscanwindow.cpp \
can_structs.cpp
HEADERS += mainwindow.h \
can_structs.h \
+2
View File
@@ -0,0 +1,2 @@
#include "can_structs.h"
+16 -1
View File
@@ -1,9 +1,10 @@
#ifndef CAN_STRUCTS_H
#define CAN_STRUCTS_H
#include <QVector>
#include <stdint.h>
struct CANFrame
class CANFrame
{
public:
int ID;
@@ -26,5 +27,19 @@ public:
int priority;
bool isBroadcast;
};
//the same as the CANFrame struct but with arbitrary data size.
struct ISOTP_FRAME
{
public:
int ID;
int bus;
bool extended;
bool isReceived;
int len;
QVector<unsigned char> data;
uint64_t timestamp;
};
#endif // CAN_STRUCTS_H
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef CONFIG
#define CONFIG
#define VERSION 150
#define VERSION 151
//try to keep this in sync.
//SavvyCAN will complain if you connect a GVRET board with a revision
+3
View File
@@ -734,6 +734,9 @@ void GraphingWindow::loadDefinitions()
QStringList filters;
filters.append(QString(tr("Graph definition (*.gdf)")));
if (dbcHandler == NULL) return;
if (dbcHandler->getFileCount() == 0) dbcHandler->createBlankFile();
dialog.setFileMode(QFileDialog::ExistingFile);
dialog.setNameFilters(filters);
dialog.setViewMode(QFileDialog::Detail);