From: Kaj-Michael Lang Date: Mon, 3 Sep 2007 09:16:41 +0000 (+0300) Subject: Start to move gps stuff here. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc1bf10c69aa70902726c1d4c051c60e27d0addb;p=mapper Start to move gps stuff here. --- diff --git a/src/gps.c b/src/gps.c new file mode 100644 index 0000000..a2bd94b --- /dev/null +++ b/src/gps.c @@ -0,0 +1,20 @@ +#include "gps.h" +#include "utils.h" + +void +gps_init(void) +{ +_gps.lat = 0; +_gps.lon = 0; +_pos.unitx = 0; +_pos.unity = 0; +_gps.heading = 0; +_gps.lheading = 0; +_gps.fix = 1; +_gps.satinuse = 0; +_gps.satinview = 0; +_gps.speed = 0.f; + +integerize_data(_vel_offsetx, _vel_offsety, _pos, _gps); +} +