From 3141cfe0590f57e2096e293dff743f8f619bb8dc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell <tridge@samba.org> Date: Fri, 20 Apr 2012 22:02:37 +1000 Subject: [PATCH] GPS: detect new style 3DR UBlox --- libraries/AP_GPS/AP_GPS_Auto.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libraries/AP_GPS/AP_GPS_Auto.cpp b/libraries/AP_GPS/AP_GPS_Auto.cpp index 78c8411f3..c64d8fb46 100644 --- a/libraries/AP_GPS/AP_GPS_Auto.cpp +++ b/libraries/AP_GPS/AP_GPS_Auto.cpp @@ -165,6 +165,17 @@ AP_GPS_Auto::_detect(void) break; } + // new style 3DR UBlox (April 2012)x + if (0xb5 == fingerprint[0] && + 0x62 == fingerprint[1] && + 0x0d == fingerprint[2] && + 0x01 == fingerprint[3]) { + // new style Ublox + gps = new AP_GPS_UBLOX(_port); + Serial.print_P(PSTR(" ublox ")); + break; + } + // // MTK v1.6 // -- GitLab