]> err.no Git - mapper/commitdiff
Start to move gps stuff here.
authorKaj-Michael Lang <milang@onion.tal.org>
Mon, 3 Sep 2007 09:16:41 +0000 (12:16 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Mon, 3 Sep 2007 09:16:41 +0000 (12:16 +0300)
src/gps.c [new file with mode: 0644]

diff --git a/src/gps.c b/src/gps.c
new file mode 100644 (file)
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);
+}
+