diff --git a/sw/airborne/modules/gps/gps_ubx_ucenter.c b/sw/airborne/modules/gps/gps_ubx_ucenter.c index ccab907c6c..0161ec72f2 100644 --- a/sw/airborne/modules/gps/gps_ubx_ucenter.c +++ b/sw/airborne/modules/gps/gps_ubx_ucenter.c @@ -17,6 +17,8 @@ * along with paparazzi; see the file COPYING. If not, write to * the Free Software Foundation, 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. + * + * Initial author: C. De Wagter */ #include "gps_ubx_ucenter.h" @@ -30,7 +32,9 @@ #define GPS_UBX_UCENTER_REPLY_NACK 2 #define GPS_UBX_UCENTER_REPLY_VERSION 3 -/** Space Vehicle Information */ +#define GPS_UBX_UCENTER_CONFIG_STEPS 17 + +/** U-Center Variables */ struct gps_ubx_ucenter_t { uint8_t status; uint8_t reply; @@ -45,6 +49,9 @@ struct gps_ubx_ucenter_t { uint16_t hw_ver_h; uint16_t hw_ver_l; + + char replies[GPS_UBX_UCENTER_CONFIG_STEPS]; + char msg[16]; } gps_ubx_ucenter; @@ -75,6 +82,11 @@ void gps_ubx_ucenter_init(void) gps_ubx_ucenter.hw_ver_h = 0; gps_ubx_ucenter.hw_ver_l = 0; + for (int i=0; i