Rover: To add a judgment of 0 degrees longitude.

This commit is contained in:
murata 2016-10-04 06:24:57 +09:00 committed by Lucas De Marchi
parent 7148cc6239
commit 1ece4b6f53
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}