From fc1bf10c69aa70902726c1d4c051c60e27d0addb Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 3 Sep 2007 12:16:41 +0300 Subject: [PATCH] Start to move gps stuff here. --- src/gps.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/gps.c 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); +} + -- 2.39.5