44 #include "../../definitions.h" 46 #define MTK_SYNC1_V16 0xd0 47 #define MTK_SYNC1_V19 0xd1 48 #define MTK_SYNC2 0xdd 50 #define MTK_OUTPUT_5HZ "$PMTK220,200*2C\r\n" 51 #define MTK_SET_BINARY "$PGCMD,16,0,0,0,0,0*6A\r\n" 52 #define MTK_SBAS_ON "$PMTK313,1*2E\r\n" 53 #define MTK_WAAS_ON "$PMTK301,2*2E\r\n" 54 #define MTK_NAVTHRES_OFF "$PMTK397,0*23\r\n" 56 #define MTK_TIMEOUT_5HZ 400 57 #define MTK_BAUDRATE 38400 86 #define MTK_RECV_BUFFER_SIZE 40 94 int receive(
unsigned timeout)
override;
116 void addByteToChecksum(uint8_t);
120 uint8_t _mtk_revision{0};
121 unsigned _rx_count{};
int32_t longitude
Longitude in degrees * 10^7.
uint32_t ground_speed
velocity in m/s
static enum ST24_DECODE_STATE _decode_state
int32_t latitude
Latitude in degrees * 10^7.
int(* GPSCallbackPtr)(GPSCallbackType type, void *data1, int data2, void *user)
Callback function for platform-specific stuff.
uint8_t fix_type
fix type: XXX correct for that
uint8_t satellites
number of satellites used
uint8_t payload
Number of payload bytes.
int32_t heading
heading in degrees * 10^2
uint32_t msl_altitude
MSL altitude in meters * 10^2.
uint16_t hdop
horizontal dilution of position (without unit)
the structures of the binary packets