mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
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
|
// We countdown N number of good GPS fixes
|
||||||
// so that the altitude is more accurate
|
// 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;
|
ground_start_count = 5;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user