From 1fdc6a922115c235e1164aef81c2487750f9cf5b Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 25 Jun 2015 10:51:59 +0200 Subject: [PATCH] commander: Remove unused min sample dist --- src/modules/commander/mag_calibration.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/commander/mag_calibration.cpp b/src/modules/commander/mag_calibration.cpp index 260316666c..7af023fd82 100644 --- a/src/modules/commander/mag_calibration.cpp +++ b/src/modules/commander/mag_calibration.cpp @@ -189,7 +189,6 @@ int do_mag_calibration(int mavlink_fd) static bool reject_sample(float sx, float sy, float sz, float x[], float y[], float z[], unsigned count, unsigned max_count) { float min_sample_dist = fabsf(5.4f * mag_sphere_radius / sqrtf(max_count)) / 3.0f; - //float min_sample_dist = (2.0f * M_PI_F * mag_sphere_radius / max_count) / 2.0f; for (size_t i = 0; i < count; i++) { float dx = sx - x[i];