Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Mediatek MT3329 specific code. More...
Go to the source code of this file.
Data Structures | |
struct | GpsMtk |
Macros | |
#define | GPS_MTK_MAX_PAYLOAD 255 |
Includes macros generated from mtk.xml. More... | |
#define | GpsConfigure() {} |
Functions | |
void | gps_mtk_read_message (void) |
void | gps_mtk_parse (uint8_t c) |
static void | GpsEvent (void) |
Variables | |
struct GpsMtk | gps_mtk |
Mediatek MT3329 specific code.
supports: DIYDrones V1.4 protocol (AXN1.30_2278) DIYDrones V1.6 protocol (AXN1.30_2389)
documentation is partly incorrect, see mtk.xml for what seems to be "real"
Definition in file gps_mtk.h.
struct GpsMtk |
#define GPS_MTK_MAX_PAYLOAD 255 |
#define GpsConfigure | ( | ) | {} |
Definition at line 66 of file gps_mtk.h.
Referenced by GpsEvent().
void gps_mtk_parse | ( | uint8_t | c | ) |
Definition at line 309 of file gps_mtk.c.
References GpsMtk::ck_a, GpsMtk::ck_b, GpsMtk::error_cnt, GpsMtk::error_last, GOT_CHECKSUM1, GOT_CLASS_14, GOT_ID, GOT_PAYLOAD, GOT_SYNC1_14, GOT_SYNC1_16, GOT_SYNC2_14, GOT_SYNC2_16, gps_mtk, GPS_MTK_ERR_CHECKSUM, GPS_MTK_ERR_OUT_OF_SYNC, GPS_MTK_ERR_OVERRUN, GPS_MTK_ERR_UNEXPECTED, GpsMtk::len, GpsMtk::msg_available, GpsMtk::msg_buf, GpsMtk::msg_class, GpsMtk::msg_id, GpsMtk::msg_idx, GpsMtk::status, TRUE, and UNINIT.
Referenced by GpsEvent().
void gps_mtk_read_message | ( | void | ) |
Definition at line 189 of file gps_mtk.c.
References LlaCoor_i::alt, UtmCoor_i::alt, GpsState::course, UtmCoor_f::east, UtmCoor_i::east, GpsState::fix, gps, GPS_FIX_2D, GPS_FIX_3D, GPS_FIX_NONE, gps_mtk, gps_mtk_time2itow(), gps_time_sync, GpsState::gspeed, GpsState::hmsl, GpsState::last_3dfix_time, LlaCoor_i::lat, LED_ON, LED_TOGGLE, LLA_FLOAT_OF_BFP, GpsState::lla_pos, LlaCoor_i::lon, GpsMtk::msg_buf, GpsMtk::msg_class, GpsMtk::msg_id, MTK_DIY_FIX_2D, MTK_DIY_FIX_3D, nav_utm_zone0, sys_time::nb_sec, sys_time::nb_tick, GpsState::ned_vel, UtmCoor_f::north, UtmCoor_i::north, GpsState::num_sv, OUTPUT_RATE, GpsState::speed_3d, SysTimeTimerStart, GpsTimeSync::t0_ticks, GpsTimeSync::t0_tow, GpsTimeSync::t0_tow_frac, GpsState::tow, utm_of_lla_f(), GpsState::utm_pos, GpsState::week, NedCoor_i::z, UtmCoor_f::zone, and UtmCoor_i::zone.
Referenced by gps_mtk_msg().
|
inlinestatic |
Definition at line 72 of file gps_mtk.h.
References link_device::char_available, dev, link_device::get_byte, gps_mtk, gps_mtk_msg(), gps_mtk_parse(), GpsConfigure, GpsMtk::msg_available, and link_device::periph.
struct GpsMtk gps_mtk |
Definition at line 82 of file gps_mtk.c.
Referenced by gps_impl_init(), gps_mtk_msg(), gps_mtk_parse(), gps_mtk_read_message(), and GpsEvent().