Added in code to interface with the GVRET firmware on candue or gevcu hardware.
This commit is contained in:
+19
-1
@@ -10,6 +10,18 @@ namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
enum STATE //keep this enum synchronized with the Arduino firmware project
|
||||
{
|
||||
IDLE,
|
||||
GET_COMMAND,
|
||||
BUILD_CAN_FRAME,
|
||||
TIME_SYNC,
|
||||
GET_DIG_INPUTS,
|
||||
GET_ANALOG_INPUTS,
|
||||
SET_DIG_OUTPUTS,
|
||||
SETUP_CANBUS
|
||||
};
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -21,17 +33,23 @@ public:
|
||||
private slots:
|
||||
void handleLoadFile();
|
||||
void connButtonPress();
|
||||
void readSerialData();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
CANFrameModel *model;
|
||||
QSerialPort *port;
|
||||
QByteArray inputBuffer;
|
||||
STATE rx_state;
|
||||
int rx_step;
|
||||
CANFrame buildFrame;
|
||||
void loadCRTDFile(QString);
|
||||
void loadNativeCSVFile(QString);
|
||||
void loadGenericCSVFile(QString);
|
||||
void loadLogFile(QString);
|
||||
void loadMicrochipFile(QString);
|
||||
void addFrameToDisplay(CANFrame &);
|
||||
void addFrameToDisplay(CANFrame &, bool);
|
||||
void procRXChar(unsigned char);
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user