mirror of https://github.com/ArduPilot/ardupilot
AntennaTracker: To add a judgment of 0 degrees longitude.
This commit is contained in:
parent
2f18d1de73
commit
467da77c77
|
@ -108,7 +108,7 @@ void Tracker::update_GPS(void)
|
|||
// We countdown N number of good GPS fixes
|
||||
// so that the altitude is more accurate
|
||||
// -------------------------------------
|
||||
if (current_loc.lat == 0) {
|
||||
if (current_loc.lat == 0 && current_loc.lng == 0) {
|
||||
ground_start_count = 5;
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue