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 @@ ...@@ -17,27 +17,18 @@
#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;
UA_Double longitude; UA_Double longitude;
UA_Double altitudeAbs; UA_Double altitudeAbs;
UA_Double altitudeRel; UA_Double altitudeRel;
UA_Int64 timestamp; UA_Int64 timestamp;
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