From 987f55387ee0aea7005840ea39704c2f6e8b53fe Mon Sep 17 00:00:00 2001 From: Jonathan Challinger Date: Wed, 18 Mar 2015 17:49:39 -0700 Subject: [PATCH] AP_Compass: style cleanup --- .../AP_Compass/AP_Compass_Calibration.cpp | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/libraries/AP_Compass/AP_Compass_Calibration.cpp b/libraries/AP_Compass/AP_Compass_Calibration.cpp index 6c8f3cd20a..f683700525 100644 --- a/libraries/AP_Compass/AP_Compass_Calibration.cpp +++ b/libraries/AP_Compass/AP_Compass_Calibration.cpp @@ -29,11 +29,11 @@ Compass::compass_cal_update() bool Compass::start_calibration(uint8_t i, bool retry, bool autosave, float delay) { - if(healthy(i)) { - if(!is_calibrating() && delay > 0.5f) { + if (healthy(i)) { + if (!is_calibrating() && delay > 0.5f) { AP_Notify::events.initiated_compass_cal = 1; } - if(i == get_primary()) { + if (i == get_primary()) { _calibrator[i].set_tolerance(5); } else { _calibrator[i].set_tolerance(10); @@ -48,9 +48,9 @@ Compass::start_calibration(uint8_t i, bool retry, bool autosave, float delay) bool Compass::start_calibration_mask(uint8_t mask, bool retry, bool autosave, float delay) { - for(uint8_t i=0; i