pdock 60 test task
This commit is contained in:
@ -8,15 +8,21 @@
|
||||
#ifndef TEST_TESTTASKS_P60DOCKTESTTASK_H_
|
||||
#define TEST_TESTTASKS_P60DOCKTESTTASK_H_
|
||||
|
||||
#include <fsfw/returnvalues/HasReturnvaluesIF.h>
|
||||
#include <fsfw/tasks/ExecutableObjectIF.h>
|
||||
#include <fsfw/objectmanager/SystemObject.h>
|
||||
|
||||
extern "C" {
|
||||
#include <csp/csp.h>
|
||||
#include <csp/interfaces/csp_if_can.h>
|
||||
}
|
||||
|
||||
|
||||
class P60DockTestTask: public ExecutableObjectIF {
|
||||
class P60DockTestTask: public SystemObject,
|
||||
public ExecutableObjectIF,
|
||||
public HasReturnvaluesIF {
|
||||
public:
|
||||
P60DockTestTask();
|
||||
P60DockTestTask(object_id_t objectId_);
|
||||
virtual ~P60DockTestTask();
|
||||
|
||||
virtual ReturnValue_t performOperation(uint8_t operationCode = 0);
|
||||
@ -24,11 +30,15 @@ public:
|
||||
private:
|
||||
/* Interface struct for csp protocol stack */
|
||||
csp_iface_t csp_if;
|
||||
uint32_t canExtMsgId = 4;
|
||||
/* CAN configuration struct for SocketCAN interface "can0" */
|
||||
struct csp_can_config can_conf = {.ifc = "can0"};
|
||||
uint8_t p60dockAddress = 4;
|
||||
uint8_t CSP_PING = 1;
|
||||
uint8_t cspAddress = 1;
|
||||
const char* canIf = "can0";
|
||||
int bitrate = 1000; // bitrate of can
|
||||
int promisc = 0; // set to 0 to enable filter mode
|
||||
|
||||
ReturnValue_t sendPacket(void);
|
||||
ReturnValue_t initializeCSPStack(void);
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user