59 for (int16_t i = 0; i < numc; i++) {
153 uint32_t bcd_time_ms;
154 bcd_time_ms =
_buffer.msg.utc_time;
157 (
unsigned long)
_buffer.msg.utc_date,
158 (
unsigned long)
_buffer.msg.utc_time,
190 switch (state.
step) {
221 if (state.
ck_a != data) {
228 if (state.
ck_b != data) {
#define MTK_GPS_REVISION_V16
union AP_GPS_MTK19::@29 _buffer
uint32_t last_gps_time_ms
the system time we got the last GPS timestamp, milliseconds
AP_HAL::UARTDriver * console
GPS_Status status
driver fix status
int32_t lat
param 3 - Latitude * 10**7
AP_GPS_MTK19(AP_GPS &_gps, AP_GPS::GPS_State &_state, AP_HAL::UARTDriver *_port)
static bool _detect(struct MTK19_detect_state &state, uint8_t data)
virtual void printf(const char *,...) FMT_PRINTF(2
float wrap_360(const T angle, float unit_mod)
int32_t alt
param 2 - Altitude in centimeters (meters * 100) see LOCATION_ALT_MAX_M
#define MTK_GPS_REVISION_V19
Receiving valid messages and 2D lock.
AP_GPS::GPS_State & state
public state for this instance
virtual uint32_t available()=0
Location location
last fix location
int32_t lng
param 4 - Longitude * 10**7
void fill_3d_velocity(void)
Receiving valid GPS messages but no lock.
static void send_init_blob(uint8_t instance, AP_GPS &gps)
void make_gps_time(uint32_t bcd_date, uint32_t bcd_milliseconds)
AP_HAL::UARTDriver * port
UART we are attached to.
float ground_speed
ground speed in m/sec
Receiving valid messages and 3D lock.
uint16_t hdop
horizontal dilution of precision in cm
uint8_t num_sats
Number of visible satellites.
float ground_course
ground course in degrees