@ -228,10 +228,15 @@ AP_GPS_UBLOX::_parse_gps(void)
@@ -228,10 +228,15 @@ AP_GPS_UBLOX::_parse_gps(void)
Debug ( " MSG_STATUS fix_status=%u fix_type=%u " ,
_buffer . status . fix_status ,
_buffer . status . fix_type ) ;
if ( _buffer . status . fix_type = = AP_GPS_UBLOX : : FIX_3D ) {
next_fix = GPS : : FIX_3D ;
} else if ( _buffer . status . fix_type = = AP_GPS_UBLOX : : FIX_2D ) {
next_fix = GPS : : FIX_2D ;
if ( _buffer . status . fix_status & NAV_STATUS_FIX_VALID ) {
if ( _buffer . status . fix_type = = AP_GPS_UBLOX : : FIX_3D ) {
next_fix = GPS : : FIX_3D ;
} else if ( _buffer . status . fix_type = = AP_GPS_UBLOX : : FIX_2D ) {
next_fix = GPS : : FIX_2D ;
} else {
next_fix = GPS : : FIX_NONE ;
fix = GPS : : FIX_NONE ;
}
} else {
next_fix = GPS : : FIX_NONE ;
fix = GPS : : FIX_NONE ;
@ -241,10 +246,15 @@ AP_GPS_UBLOX::_parse_gps(void)
@@ -241,10 +246,15 @@ AP_GPS_UBLOX::_parse_gps(void)
Debug ( " MSG_SOL fix_status=%u fix_type=%u " ,
_buffer . solution . fix_status ,
_buffer . solution . fix_type ) ;
if ( _buffer . status . fix_type = = AP_GPS_UBLOX : : FIX_3D ) {
next_fix = GPS : : FIX_3D ;
} else if ( _buffer . status . fix_type = = AP_GPS_UBLOX : : FIX_2D ) {
next_fix = GPS : : FIX_2D ;
if ( _buffer . status . fix_status & NAV_STATUS_FIX_VALID ) {
if ( _buffer . status . fix_type = = AP_GPS_UBLOX : : FIX_3D ) {
next_fix = GPS : : FIX_3D ;
} else if ( _buffer . status . fix_type = = AP_GPS_UBLOX : : FIX_2D ) {
next_fix = GPS : : FIX_2D ;
} else {
next_fix = GPS : : FIX_NONE ;
fix = GPS : : FIX_NONE ;
}
} else {
next_fix = GPS : : FIX_NONE ;
fix = GPS : : FIX_NONE ;