mirror of https://github.com/ArduPilot/ardupilot
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue