|
Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Include dependency graph for gps_skytraq.h:Go to the source code of this file.
Data Structures | |
| struct | GpsSkytraq |
Macros | |
| #define | SKYTRAQ_ID_NAVIGATION_DATA 0XA8 |
| #define | GPS_SKYTRAQ_MAX_PAYLOAD 255 |
Functions | |
| void | gps_skytraq_read_message (void) |
| void | gps_skytraq_parse (uint8_t c) |
| void | gps_skytraq_msg (void) |
| static void | GpsEvent (void) |
Variables | |
| struct GpsSkytraq | gps_skytraq |
| struct GpsSkytraq |
Definition at line 40 of file gps_skytraq.h.
Collaboration diagram for GpsSkytraq:| Data Fields | ||
|---|---|---|
| uint8_t | checksum | |
| uint8_t | error_cnt | |
| enum GpsSkytraqError | error_last | |
| uint16_t | len | |
| bool_t | msg_available | |
| uint8_t | msg_buf[GPS_SKYTRAQ_MAX_PAYLOAD] | |
| uint8_t | msg_id | |
| uint8_t | msg_idx | |
| struct LtpDef_i | ref_ltp | |
| uint8_t | status | |
| #define GPS_SKYTRAQ_MAX_PAYLOAD 255 |
Definition at line 39 of file gps_skytraq.h.
Referenced by gps_skytraq_parse().
| #define SKYTRAQ_ID_NAVIGATION_DATA 0XA8 |
Definition at line 27 of file gps_skytraq.h.
Referenced by gps_skytraq_msg(), and gps_skytraq_read_message().
| enum GpsSkytraqError |
| Enumerator | |
|---|---|
| GPS_SKYTRAQ_ERR_NONE | |
| GPS_SKYTRAQ_ERR_OVERRUN | |
| GPS_SKYTRAQ_ERR_MSG_TOO_LONG | |
| GPS_SKYTRAQ_ERR_CHECKSUM | |
| GPS_SKYTRAQ_ERR_OUT_OF_SYNC | |
| GPS_SKYTRAQ_ERR_UNEXPECTED | |
Definition at line 30 of file gps_skytraq.h.
| void gps_skytraq_msg | ( | void | ) |
Definition at line 101 of file gps_skytraq.c.
References FALSE, GpsState::fix, get_sys_time_usec(), gps, GPS_FIX_3D, gps_skytraq, GPS_SKYTRAQ_ID, gps_skytraq_read_message(), GpsState::last_3dfix_ticks, GpsState::last_3dfix_time, GpsState::last_msg_ticks, GpsState::last_msg_time, GpsSkytraq::msg_available, GpsSkytraq::msg_id, sys_time::nb_sec, sys_time::nb_sec_rem, and SKYTRAQ_ID_NAVIGATION_DATA.
Referenced by GpsEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| void gps_skytraq_parse | ( | uint8_t | c | ) |
Definition at line 198 of file gps_skytraq.c.
References GpsSkytraq::checksum, GpsSkytraq::error_cnt, GpsSkytraq::error_last, GOT_CHECKSUM, GOT_ID, GOT_LEN1, GOT_LEN2, GOT_PAYLOAD, GOT_SYNC1, GOT_SYNC2, GOT_SYNC3, gps_skytraq, GPS_SKYTRAQ_ERR_CHECKSUM, GPS_SKYTRAQ_ERR_MSG_TOO_LONG, GPS_SKYTRAQ_ERR_OUT_OF_SYNC, GPS_SKYTRAQ_ERR_UNEXPECTED, GPS_SKYTRAQ_MAX_PAYLOAD, GpsSkytraq::len, GpsSkytraq::msg_available, GpsSkytraq::msg_buf, GpsSkytraq::msg_id, GpsSkytraq::msg_idx, SKYTRAQ_SYNC1, SKYTRAQ_SYNC2, SKYTRAQ_SYNC3, GpsSkytraq::status, TRUE, and UNINIT.
Referenced by GpsEvent().
Here is the caller graph for this function:| void gps_skytraq_read_message | ( | void | ) |
Definition at line 119 of file gps_skytraq.c.
References LlaCoor_i::alt, UtmCoor_i::alt, GpsState::course, distance_too_great(), UtmCoor_f::east, UtmCoor_i::east, LtpDef_i::ecef, GpsState::ecef_pos, GpsState::ecef_vel, GpsState::fix, gps, GPS_FIX_2D, GPS_FIX_3D, GPS_FIX_NONE, gps_skytraq, GpsState::gspeed, GpsState::hmsl, LlaCoor_i::lat, LED_ON, LED_TOGGLE, LLA_FLOAT_OF_BFP, GpsState::lla_pos, LlaCoor_i::lon, ltp_def_from_ecef_i(), GpsSkytraq::msg_buf, GpsSkytraq::msg_id, nav_utm_zone0, ned_of_ecef_vect_i(), GpsState::ned_vel, UtmCoor_f::north, UtmCoor_i::north, GpsState::num_sv, GpsState::pdop, GpsSkytraq::ref_ltp, SKYTRAQ_FIX_2D, SKYTRAQ_FIX_3D, SKYTRAQ_FIX_3D_DGPS, SKYTRAQ_ID_NAVIGATION_DATA, SKYTRAQ_NAVIGATION_DATA_AEL, SKYTRAQ_NAVIGATION_DATA_ASL, SKYTRAQ_NAVIGATION_DATA_ECEFVX, SKYTRAQ_NAVIGATION_DATA_ECEFVY, SKYTRAQ_NAVIGATION_DATA_ECEFVZ, SKYTRAQ_NAVIGATION_DATA_ECEFX, SKYTRAQ_NAVIGATION_DATA_ECEFY, SKYTRAQ_NAVIGATION_DATA_ECEFZ, SKYTRAQ_NAVIGATION_DATA_FixMode, SKYTRAQ_NAVIGATION_DATA_LAT, SKYTRAQ_NAVIGATION_DATA_LON, SKYTRAQ_NAVIGATION_DATA_NumSV, SKYTRAQ_NAVIGATION_DATA_PDOP, SKYTRAQ_NAVIGATION_DATA_TOW, GpsState::speed_3d, GpsState::tow, utm_of_lla_f(), GpsState::utm_pos, EcefCoor_i::x, NedCoor_i::x, EcefCoor_i::y, NedCoor_i::y, EcefCoor_i::z, NedCoor_i::z, UtmCoor_f::zone, and UtmCoor_i::zone.
Referenced by gps_skytraq_msg().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 67 of file gps_skytraq.h.
References link_device::char_available, dev, link_device::get_byte, gps_skytraq, gps_skytraq_msg(), gps_skytraq_parse(), GpsSkytraq::msg_available, and link_device::periph.
Here is the call graph for this function:| struct GpsSkytraq gps_skytraq |
Definition at line 32 of file gps_skytraq.c.
Referenced by gps_impl_init(), gps_skytraq_msg(), gps_skytraq_parse(), gps_skytraq_read_message(), and GpsEvent().