Commit 38c9977c authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Use pipes to store pubsub messages

parent 4e0e3fa2
......@@ -17,27 +17,18 @@
#define MAX_STR_SIZE 1024
struct strNode {
char *str;
struct strNode *next;
};
typedef struct {
struct strNode *head;
struct strNode *tail;
} StrQueue;
typedef struct {
UA_UInt16 id;
UA_Double latitude;
UA_Double longitude;
UA_Double altitudeAbs;
UA_Double altitudeRel;
UA_Int64 timestamp;
UA_Int64 timestamp;
UA_Float yaw;
UA_Float speed;
UA_Float climbRate;
StrQueue receiveMessageQueue;
StrQueue receiveLogQueue;
int receiveMessagePipefds[2];
int receiveLogPipefds[2];
} JSDroneData;
typedef struct {
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment