Reworked driver code, part II
This commit is contained in:
@@ -49,26 +49,23 @@ public:
|
||||
|
||||
QString getNodeName( unsigned char id );
|
||||
|
||||
public slots:
|
||||
|
||||
void onStartDriver() override;
|
||||
|
||||
protected:
|
||||
|
||||
void loadDriver();
|
||||
void initDriver();
|
||||
|
||||
// typen?
|
||||
//void setValue( unsigned char receipient, unsigned char reg, unsigned char value );
|
||||
//unsigned int getValue( unsigned char receipient, unsigned char reg );
|
||||
|
||||
DriverState connectDriver();
|
||||
|
||||
//const char* CBCDLL_LIN = "libmhstcan.so";
|
||||
//const char* CBCDLL_WIN = "mhstcan.dll";
|
||||
|
||||
|
||||
static constexpr int cRetries = 5;
|
||||
static constexpr int cTimeOuts = 20;
|
||||
static constexpr int cTIMEOUT_MS = 10; // 10ms
|
||||
static constexpr int cTIMEOUT_COUNT = 10;
|
||||
|
||||
|
||||
//const unsigned int BATTERY = 0x010;
|
||||
//const unsigned int MOTOR = 0x020;
|
||||
const unsigned int BIB = 0x048;
|
||||
|
||||
Reference in New Issue
Block a user