diff options
Diffstat (limited to 'app/gps.h')
-rw-r--r-- | app/gps.h | 11 |
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; +} + |