Plane: when no GPS lock always send GPS messages

This commit is contained in:
Andrew Tridgell 2013-12-11 15:22:35 +11:00
parent b0a0316dd6
commit 103da0c889

View File

@ -293,7 +293,7 @@ static void NOINLINE send_nav_controller_output(mavlink_channel_t chan)
static void NOINLINE send_gps_raw(mavlink_channel_t chan)
{
static uint32_t last_send_time;
if (last_send_time != 0 && last_send_time == g_gps->last_fix_time) {
if (last_send_time != 0 && last_send_time == g_gps->last_fix_time && g_gps->status() >= GPS::GPS_OK_FIX_3D) {
return;
}
last_send_time = g_gps->last_fix_time;