U-blox GPS (UART) Driver for u-blox GPS modules parsing the binary UBX protocol. The reset variable allows us to manually restart the u-blox GPS. There are three modes: - Hotstart (GPS_UBX_BOOTRESET = 1) - Warmstart (GPS_UBX_BOOTRESET = 2) - Coldstart (GPS_UBX_BOOTRESET = 3) uart,gps gps
ifdef SECONDARY_GPS ifneq (,$(findstring ublox2, $(SECONDARY_GPS))) # this is the secondary GPS $(TARGET).CFLAGS += -DGPS_SECONDARY_TYPE_H=\"modules/gps/gps_ubx.h\" $(TARGET).CFLAGS += -DSECONDARY_GPS=GPS_UBX2 $(TARGET).CFLAGS += -DGPS_UBX_NB=2 else ifneq (,$(findstring ublox, $(SECONDARY_GPS))) # this is the secondary GPS $(TARGET).CFLAGS += -DGPS_SECONDARY_TYPE_H=\"modules/gps/gps_ubx.h\" $(TARGET).CFLAGS += -DSECONDARY_GPS=GPS_UBX endif ifneq (,$(findstring ublox2, $(PRIMARY_GPS))) $(TARGET).CFLAGS += -DGPS_TYPE_H=\"modules/gps/gps_ubx.h\" $(TARGET).CFLAGS += -DPRIMARY_GPS=GPS_UBX2 $(TARGET).CFLAGS += -DGPS_UBX_NB=2 else ifneq (,$(findstring ublox, $(PRIMARY_GPS))) $(TARGET).CFLAGS += -DGPS_TYPE_H=\"modules/gps/gps_ubx.h\" $(TARGET).CFLAGS += -DPRIMARY_GPS=GPS_UBX endif else # plain old single GPS usage $(TARGET).CFLAGS += -DGPS_TYPE_H=\"modules/gps/gps_ubx.h\" endif