diff --git a/sw/airborne/gps.h b/sw/airborne/gps.h index 466a4afbb4..6103d546bc 100644 --- a/sw/airborne/gps.h +++ b/sw/airborne/gps.h @@ -38,8 +38,6 @@ #include "gps_ubx.h" #elif defined USE_GPS_XSENS #include "gps_xsens.h" -#define GPS_NB_CHANNELS 16 -#define GpsFixValid() (gps_mode == 3) #elif defined SITL #define GPS_NB_CHANNELS 16 #define GpsFixValid() (gps_mode == 3) diff --git a/sw/airborne/gps_xsens.h b/sw/airborne/gps_xsens.h index da6c06f9d1..a6361296fb 100644 --- a/sw/airborne/gps_xsens.h +++ b/sw/airborne/gps_xsens.h @@ -22,8 +22,8 @@ * */ -/** \file gps_ubx.h - * \brief UBX protocol specific code +/** \file gps_xsens.h + * \brief XSens GPS * */ @@ -33,6 +33,8 @@ extern uint16_t gps_reset; +#define GPS_NB_CHANNELS 16 + #define GpsFixValid() (gps_mode == 3) #define gps_xsens_Reset(_val) { \