mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
Rover: To add a judgment of 0 degrees longitude.
This commit is contained in:
parent
7148cc6239
commit
1ece4b6f53
@ -13,7 +13,7 @@ void Rover::navigate()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((next_WP.lat == 0) || (home_is_set==HOME_UNSET)){
|
if ((next_WP.lat == 0 && next_WP.lng == 0) || (home_is_set==HOME_UNSET)){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user