diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-12-22 18:24:57 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-01-09 21:57:13 +0100 |
commit | 9acc82ce4a01d502db1be8cdf15d2328ae181c5c (patch) | |
tree | 6464071590ee6e14717417139366f8394d6116c6 /src/osmo-bts-sysmo/misc/sysmobts_mgr.h | |
parent | c017e309c4d73420a31c32e95aeae30f5e09c161 (diff) |
sysmobts: Initial version to use libgps to determine FIX state
We should only calibrate the clock if there is a GPS fix. Start
gpsd to determine if there is a fix or not. Work around trimble
decoding issues (sent an email upstream). We need to gain some
more experience to see if there memory leaks. We also need to
re-schedule the calibration depending on the outcome.
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_mgr.h')
-rw-r--r-- | src/osmo-bts-sysmo/misc/sysmobts_mgr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr.h b/src/osmo-bts-sysmo/misc/sysmobts_mgr.h index 85617304..3999ffb4 100644 --- a/src/osmo-bts-sysmo/misc/sysmobts_mgr.h +++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr.h @@ -4,8 +4,11 @@ #include <osmocom/vty/vty.h> #include <osmocom/vty/command.h> +#include <osmocom/core/select.h> #include <osmocom/core/timer.h> +#include <gps.h> + #include <stdint.h> enum { @@ -88,6 +91,12 @@ struct sysmobts_mgr_instance { int state; struct osmo_timer_list timer; uint32_t last_seqno; + + /* gps structure to see if there is a fix */ + int gps_open; + struct osmo_fd gpsfd; + struct gps_data_t gpsdata; + struct osmo_timer_list fix_timeout; } calib; }; |