summaryrefslogtreecommitdiffstats
path: root/app/gps.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/gps.h')
-rw-r--r--app/gps.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/gps.h b/app/gps.h
new file mode 100644
index 0000000..ce6ee14
--- /dev/null
+++ b/app/gps.h
@@ -0,0 +1,11 @@
+extern int gps_happy;
+
+static inline int gps_is_happy (void)
+{
+ return gps_happy > 15;
+}
+static inline int gps_is_stable (void)
+{
+ return gps_happy > 60;
+}
+