mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Plane: when no GPS lock always send GPS messages
This commit is contained in:
parent
b0a0316dd6
commit
103da0c889
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user