CommInterface, CommObd2Ble4, CommObd2Can

This commit is contained in:
Lubos Petrovic
2020-12-07 09:19:28 +01:00
parent 581a5a9ec4
commit a7fff773b5
7 changed files with 62 additions and 1 deletions

View File

@@ -1167,7 +1167,11 @@ void Board320_240::redrawScreen() {
spr.fillCircle(310, 10, 3, spr.fillCircle(310, 10, 3,
(liveData->params.sdcardInit == 1) ? (liveData->params.sdcardInit == 1) ?
(liveData->params.sdcardRecording) ? (liveData->params.sdcardRecording) ?
(strlen(liveData->params.sdcardFilename) != 0) TFT_RED: TFT_BLUE : TFT_GREEN : TFT_YELLOW (strlen(liveData->params.sdcardFilename) != 0) ?
TFT_GREEN /* assigned filename (opsec from bms or gsm/gps timestamp */:
TFT_BLUE /* recording started but waiting for data */ :
TFT_ORANGE /* sdcard init ready but recording not started*/ :
TFT_YELLOW /* failed to initialize sdcard */
); );
} }

7
CommInterface.cpp Normal file
View File

@@ -0,0 +1,7 @@
#ifndef COMMINTERFACE_CPP
#define COMMINTERFACE_CPP
#include "CommInterface.h"
#include "LiveData.h"
#endif // COMMINTERFACE_CPP

12
CommInterface.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef COMMINTERFACE_H
#define COMMINTERFACE_H
#include "LiveData.h"
class CommInterface {
private:
public:
};
#endif // COMMINTERFACE_H

7
CommObd2Ble4.cpp Normal file
View File

@@ -0,0 +1,7 @@
#ifndef COMMOBD2BLE4_CPP
#define COMMOBD2BLE4_CPP
#include "CommInterface.h"
#include "LiveData.h"
#endif // COMMOBD2BLE4_CPP

12
CommObd2Ble4.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef COMMOBD2BLE4_H
#define COMMOBD2BLE4_H
#include "LiveData.h"
class CommObd2Ble4 : public CommInterface {
private:
public:
};
#endif // COMMOBD2BLE4_H

7
CommObd2Can.cpp Normal file
View File

@@ -0,0 +1,7 @@
#ifndef COMMINTERFACE_CPP
#define COMMINTERFACE_CPP
#include "CommInterface.h"
#include "LiveData.h"
#endif // COMMINTERFACE_CPP

12
CommObd2Can.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef COMMOBD2CAN_H
#define COMMOBD2CAN_H
#include "LiveData.h"
class CommObd2Can : public CommInterface {
private:
public:
};
#endif // COMMOBD2CAN_H