Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
#include "subsystems/gps.h"
#include "subsystems/abi.h"
#include "led.h"
#include "math/pprz_geodetic_float.h"
#include <inttypes.h>
#include <math.h>
#include <stdio.h>
#include "gps_sirf.h"
Go to the source code of this file.
Functions | |
void | sirf_parse_2 (void) |
void | sirf_parse_41 (void) |
void | gps_impl_init (void) |
GPS initialization. More... | |
void | gps_sirf_msg (void) |
void | sirf_parse_char (uint8_t c) |
void | sirf_parse_msg (void) |
Variables | |
struct GpsSirf | gps_sirf |
int | start_time = 0 |
int | ticks = 0 |
int | start_time2 = 0 |
int | ticks2 = 0 |
void gps_impl_init | ( | void | ) |
GPS initialization.
GPS model specific init implementation.
Definition at line 43 of file gps_sirf.c.
References FALSE, gps_sirf, GpsSirf::msg_available, GpsSirf::msg_len, GpsSirf::pos_available, and GpsSirf::read_state.
void gps_sirf_msg | ( | void | ) |
Definition at line 51 of file gps_sirf.c.
References FALSE, GpsState::fix, get_sys_time_usec(), gps, GPS_FIX_3D, gps_sirf, GPS_SIRF_ID, GpsState::last_3dfix_ticks, GpsState::last_3dfix_time, GpsState::last_msg_ticks, GpsState::last_msg_time, GpsSirf::msg_available, sys_time::nb_sec, sys_time::nb_sec_rem, GpsSirf::pos_available, and sirf_parse_msg().
Referenced by GpsEvent().
void sirf_parse_2 | ( | void | ) |
Definition at line 167 of file gps_sirf.c.
References GpsState::ecef_pos, GpsState::ecef_vel, GpsState::fix, gps, GPS_FIX_3D, gps_sirf, Invert2Bytes, Invert4Bytes, GpsState::last_3dfix_time, GpsSirf::msg_buf, sys_time::nb_sec, p, start_time, start_time2, ticks, ticks2, sirf_msg_2::vx, sirf_msg_2::vy, sirf_msg_2::vz, sirf_msg_2::week, GpsState::week, EcefCoor_i::x, sirf_msg_2::x_pos, EcefCoor_i::y, sirf_msg_2::y_pos, EcefCoor_i::z, and sirf_msg_2::z_pos.
Referenced by sirf_parse_msg().
void sirf_parse_41 | ( | void | ) |
Definition at line 118 of file gps_sirf.c.
References LlaCoor_i::alt, UtmCoor_i::alt, sirf_msg_41::alt_ellipsoid, sirf_msg_41::alt_msl, GpsState::cacc, sirf_msg_41::cog, GpsState::course, UtmCoor_f::east, UtmCoor_i::east, sirf_msg_41::ehpe, sirf_msg_41::ehve, GpsState::fix, gps, GPS_FIX_2D, GPS_FIX_3D, GPS_FIX_NONE, gps_sirf, GpsState::gspeed, sirf_msg_41::hdop, sirf_msg_41::heading_err, GpsState::hmsl, Invert2Bytes, Invert4Bytes, LlaCoor_i::lat, sirf_msg_41::latitude, LLA_FLOAT_OF_BFP, GpsState::lla_pos, LlaCoor_i::lon, sirf_msg_41::longitude, GpsSirf::msg_buf, sirf_msg_41::nav_type, nav_utm_zone0, GpsState::nb_channels, UtmCoor_f::north, UtmCoor_i::north, sirf_msg_41::num_sat, GpsState::num_sv, p, GpsState::pacc, GpsState::pdop, GpsSirf::pos_available, GpsState::sacc, sirf_msg_41::sog, GpsState::tow, sirf_msg_41::tow, TRUE, utm_of_lla_f(), GpsState::utm_pos, UtmCoor_f::zone, and UtmCoor_i::zone.
Referenced by sirf_parse_msg().
void sirf_parse_char | ( | uint8_t | c | ) |
Definition at line 68 of file gps_sirf.c.
References GOT_A0, GOT_A2, GOT_B0, gps_sirf, GpsSirf::msg_available, GpsSirf::msg_buf, GpsSirf::msg_len, GpsSirf::read_state, TRUE, and UNINIT.
Referenced by GpsEvent().
void sirf_parse_msg | ( | void | ) |
Definition at line 193 of file gps_sirf.c.
References FALSE, gps_sirf, GpsSirf::msg_buf, GpsSirf::msg_len, sys_time::nb_sec, GpsSirf::pos_available, sirf_parse_2(), sirf_parse_41(), start_time2, and ticks2.
Referenced by gps_sirf_msg().
struct GpsSirf gps_sirf |
Definition at line 39 of file gps_sirf.c.
Referenced by gps_impl_init(), gps_sirf_msg(), GpsEvent(), sirf_parse_2(), sirf_parse_41(), sirf_parse_char(), and sirf_parse_msg().
int start_time = 0 |
Definition at line 113 of file gps_sirf.c.
Referenced by sirf_parse_2(), and sys_time_register_timer().
int start_time2 = 0 |
Definition at line 115 of file gps_sirf.c.
Referenced by sirf_parse_2(), and sirf_parse_msg().
int ticks = 0 |
Definition at line 114 of file gps_sirf.c.
Referenced by sirf_parse_2(), and sys_time_usleep().
int ticks2 = 0 |
Definition at line 116 of file gps_sirf.c.
Referenced by sirf_parse_2(), and sirf_parse_msg().