Updated to hiabuto.net Faction Timer PCB V1.0
This commit is contained in:
30
Software/include/lora_messages.h
Normal file
30
Software/include/lora_messages.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef _LORA_MESSAGES_H_
|
||||
#define _LORA_MESSAGES_H_
|
||||
|
||||
#define MESSAGES_VERSION 1.0
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef char MessageType_t[8];
|
||||
typedef uint16_t NodeID_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
NodeID_t nodeid;
|
||||
uint32_t millis;
|
||||
uint8_t faction_active;
|
||||
uint32_t faction_1_timer;
|
||||
uint32_t faction_2_timer;
|
||||
uint32_t faction_3_timer;
|
||||
} __attribute__((packed)) MessageStatus_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
NodeID_t nodeid;
|
||||
bool gpsfix;
|
||||
double latitude;
|
||||
double longitude;
|
||||
double altitude;
|
||||
} __attribute__((packed)) MessagePosition_t;
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user