some changes for P60Dock cookie
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
#include "bsp_linux/comIF/cookies/P60DockCookie.h"
|
||||
|
||||
|
||||
P60DockCookie::P60DockCookie(char* canInterface_, uint8_t cspAddress_) :
|
||||
canInterface(canInterface_), cspAddress(cspAddress_) {
|
||||
P60DockCookie::P60DockCookie(uint8_t cspAddress_) :
|
||||
cspAddress(cspAddress_) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -16,10 +16,9 @@ class P60DockCookie: public CookieIF {
|
||||
public:
|
||||
/**
|
||||
* Constructor for the CSP cookie
|
||||
* @param canInterface_ The CAN interface to use. E.g. "can0" or "can1".
|
||||
* @param cspAddress_ The CSP address of the target device.
|
||||
*/
|
||||
P60DockCookie(char* canInterface_, uint8_t cspAddress_);
|
||||
P60DockCookie(uint8_t cspAddress_);
|
||||
virtual ~P60DockCookie();
|
||||
|
||||
uint8_t getCspAddress();
|
||||
@ -40,7 +39,7 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
char* canInterface;
|
||||
char canInterface[5] = "can0";
|
||||
uint8_t cspAddress;
|
||||
int bitrate = 1000;
|
||||
MessageType_t nextMessage = MESSAGE_NONE;
|
||||
|
Reference in New Issue
Block a user