From fb8446ffd51c6ea76b844604a0002f098702e8e5 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Tue, 20 Dec 2016 14:33:29 +0100 Subject: [PATCH] Rover: navigation.cpp correct whitespace, remove tabs --- APMrover2/navigation.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/APMrover2/navigation.cpp b/APMrover2/navigation.cpp index 36ec0c282e..f9d92f4c37 100644 --- a/APMrover2/navigation.cpp +++ b/APMrover2/navigation.cpp @@ -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(); }