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,15 +17,6 @@ ...@@ -17,15 +17,6 @@
#define MAX_STR_SIZE 1024 #define MAX_STR_SIZE 1024
struct strNode {
char *str;
struct strNode *next;
};
typedef struct {
struct strNode *head;
struct strNode *tail;
} StrQueue;
typedef struct { typedef struct {
UA_UInt16 id; UA_UInt16 id;
UA_Double latitude; UA_Double latitude;
...@@ -36,8 +27,8 @@ typedef struct { ...@@ -36,8 +27,8 @@ typedef struct {
UA_Float yaw; UA_Float yaw;
UA_Float speed; UA_Float speed;
UA_Float climbRate; UA_Float climbRate;
StrQueue receiveMessageQueue; int receiveMessagePipefds[2];
StrQueue receiveLogQueue; int receiveLogPipefds[2];
} JSDroneData; } JSDroneData;
typedef struct { 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