mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
Rover: navigation.cpp correct whitespace, remove tabs
This commit is contained in:
parent
fa0b007efb
commit
fb8446ffd5
@ -5,23 +5,23 @@
|
||||
//****************************************************************
|
||||
void Rover::navigate()
|
||||
{
|
||||
// do not navigate with corrupt data
|
||||
// ---------------------------------
|
||||
if (!have_position) {
|
||||
return;
|
||||
}
|
||||
// do not navigate with corrupt data
|
||||
// ---------------------------------
|
||||
if (!have_position) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((next_WP.lat == 0 && next_WP.lng == 0) || (home_is_set==HOME_UNSET)){
|
||||
return;
|
||||
}
|
||||
if ((next_WP.lat == 0 && next_WP.lng == 0) || (home_is_set == HOME_UNSET)){
|
||||
return;
|
||||
}
|
||||
|
||||
// waypoint distance from rover
|
||||
// ----------------------------
|
||||
wp_distance = get_distance(current_loc, next_WP);
|
||||
// waypoint distance from rover
|
||||
// ----------------------------
|
||||
wp_distance = get_distance(current_loc, next_WP);
|
||||
|
||||
// control mode specific updates to nav_bearing
|
||||
// --------------------------------------------
|
||||
update_navigation();
|
||||
// control mode specific updates to nav_bearing
|
||||
// --------------------------------------------
|
||||
update_navigation();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user