[gps] adapt vectornav ins to multi GPS support

This commit is contained in:
Gautier Hattenberger
2016-02-15 19:45:27 +01:00
parent 80b338ce02
commit fdb133051c
4 changed files with 35 additions and 3 deletions
@@ -18,6 +18,19 @@ VN_SRCS += subsystems/ins/ins_vectornav_wrapper.c
#
VN_CFLAGS += -DUSE_GPS
VN_SRCS += $(SRC_SUBSYSTEMS)/gps.c
ifdef SECONDARY_GPS
ifneq (,$(findstring $(SECONDARY_GPS), vectornav))
# this is the secondary GPS
VN_CFLAGS += -DGPS_SECONDARY_TYPE_H=\"subsystems/ins_vectornav_wrapper.h\"
VN_CFLAGS += -DSECONDARY_GPS=gps_ubx
else
VN_CFLAGS += -DGPS_TYPE_H=\"subsystems/ins/ins_vectornav_wrapper.h\"
VN_CFLAGS += -DPRIMARY_GPS=gps_ubx
endif
else
# plain old single GPS usage
VN_CFLAGS += -DGPS_TYPE_H=\"subsystems/ins/ins_vectornav_wrapper.h\"
endif
#