From f41d577b6352e80919469ee1724a0b9ad4359e67 Mon Sep 17 00:00:00 2001 From: Gregory Fong Date: Sun, 29 Jul 2018 17:21:24 -0700 Subject: Add GREIS (Javad) GPS driver. All functional changes inside "#ifdef GREIS_ENABLE" Includes new regression tests. All regressions tests pass. Developed by Gregory Fong, with help and support from Virgin Orbit. Signed-off-by: Gary E. Miller --- drivers.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'drivers.c') diff --git a/drivers.c b/drivers.c index eda1fd61..85fbad91 100644 --- a/drivers.c +++ b/drivers.c @@ -242,6 +242,15 @@ static void nmea_event_hook(struct gps_device_t *session, event_t event) (void)nmea_send(session, "$PMTK605"); break; #endif /* MTK3301_ENABLE */ +#ifdef GREIS_ENABLE + case 9: + /* probe for Javad GREIS -- expect reply with JAVAD */ + gpsd_log(&session->context->errout, LOG_PROG, + "=> Probing for Javad GREIS\n"); + /* TODO: confirm this actually gets JAVAD response */ + (void)nmea_send(session, "print,/par/rcv/vendor"); + break; +#endif /* GREIS_ENABLE */ default: break; } @@ -1741,6 +1750,7 @@ extern const struct gps_type_t driver_evermore; extern const struct gps_type_t driver_garmin_ser_binary; extern const struct gps_type_t driver_garmin_usb_binary; extern const struct gps_type_t driver_geostar; +extern const struct gps_type_t driver_greis; extern const struct gps_type_t driver_italk; extern const struct gps_type_t driver_navcom; extern const struct gps_type_t driver_nmea2000; @@ -1803,6 +1813,9 @@ static const struct gps_type_t *gpsd_driver_array[] = { #ifdef GEOSTAR_ENABLE &driver_geostar, #endif /* GEOSTAR_ENABLE */ +#ifdef GREIS_ENABLE + &driver_greis, +#endif /* GREIS_ENABLE */ #ifdef ITRAX_ENABLE &driver_italk, #endif /* ITRAX_ENABLE */ -- cgit v1.2.1