|
|
|
@ -1179,11 +1179,7 @@ void AP_GPS::Write_AP_Logger_Log_Startup_messages()
@@ -1179,11 +1179,7 @@ void AP_GPS::Write_AP_Logger_Log_Startup_messages()
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AP_GPS::get_gps_headline_value(int32_t & gps_date_time){ |
|
|
|
|
|
|
|
|
|
gps_date_time = state[GPS_BLENDED_INSTANCE].zr_date_timestamp; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
/*
|
|
|
|
|
return the expected lag (in seconds) in the position and velocity readings from the gps |
|
|
|
|
return true if the GPS hardware configuration is known or the delay parameter has been set |
|
|
|
@ -1600,7 +1596,6 @@ void AP_GPS::calc_blended_state(void)
@@ -1600,7 +1596,6 @@ void AP_GPS::calc_blended_state(void)
|
|
|
|
|
// use data from highest weighted sensor
|
|
|
|
|
state[GPS_BLENDED_INSTANCE].time_week = state[best_index].time_week; |
|
|
|
|
state[GPS_BLENDED_INSTANCE].time_week_ms = state[best_index].time_week_ms; |
|
|
|
|
state[GPS_BLENDED_INSTANCE].zr_date_timestamp = state[best_index].zr_date_timestamp; |
|
|
|
|
} else { |
|
|
|
|
// use week number from highest weighting GPS (they should all have the same week number)
|
|
|
|
|
state[GPS_BLENDED_INSTANCE].time_week = state[best_index].time_week; |
|
|
|
@ -1612,7 +1607,6 @@ void AP_GPS::calc_blended_state(void)
@@ -1612,7 +1607,6 @@ void AP_GPS::calc_blended_state(void)
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
state[GPS_BLENDED_INSTANCE].time_week_ms = (uint32_t)temp_time_0; |
|
|
|
|
state[GPS_BLENDED_INSTANCE].zr_date_timestamp = state[best_index].zr_date_timestamp; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// calculate a blended value for the timing data and lag
|
|
|
|
|