mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-05 13:14:03 -04:00
GPS: use primary for Notification
This commit is contained in:
parent
5df3d24c77
commit
010d267376
@ -349,9 +349,6 @@ AP_GPS::update(void)
|
||||
update_instance(i);
|
||||
}
|
||||
|
||||
// update notify with gps status. We always base this on the first GPS
|
||||
AP_Notify::flags.gps_status = state[0].status;
|
||||
|
||||
#if GPS_MAX_INSTANCES > 1
|
||||
// work out which GPS is the primary, and how many sensors we have
|
||||
for (uint8_t i=0; i<GPS_MAX_INSTANCES; i++) {
|
||||
@ -381,8 +378,11 @@ AP_GPS::update(void)
|
||||
}
|
||||
}
|
||||
#else
|
||||
primary_instance=0;
|
||||
num_instances = 1;
|
||||
#endif // GPS_MAX_INSTANCES
|
||||
// update notify with gps status. We always base this on the primary_instance
|
||||
AP_Notify::flags.gps_status = state[primary_instance].status;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user