commander: Remove unused min sample dist

This commit is contained in:
Lorenz Meier
2015-06-25 14:44:24 +02:00
parent e28e4cb84c
commit 1fdc6a9221
@@ -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];