1,6 → 1,8 |
#ifndef _UART0_H |
#define _UART0_H |
|
#include "ubx.h" |
|
#define RXD_BUFFER_LEN 150 |
// must be at least 4('#'+Addr+'CmdID'+'\r')+ (80 * 4)/3 = 111 bytes |
#define TXD_BUFFER_LEN 150 |
55,5 → 57,17 |
uint8_t Reserved[5]; |
} __attribute__((packed)) UART_VersionInfo_t; |
|
typedef struct |
{ |
GPS_Pos_t Position; // the gps position of the waypoint, see ubx.h for details |
int16_t Heading; // orientation, future implementation |
uint8_t ToleranceRadius; // in meters, if the MK is within that range around the target, then the next target is triggered |
uint8_t HoldTime; // in seconds, if the was once in the tolerance area around a WP, this time defines the delay before the next WP is triggered |
uint8_t Event_Flag; // future implementation |
uint8_t reserve[12]; // reserve |
} __attribute__((packed)) Waypoint_t; |
|
extern Waypoint_t FollowMe; |
extern uint8_t Request_SendFollowMe; |
|
#endif //_UART0_H |