From 74f4f72a4ceec07c70393b389d91dfb56d2e6a30 Mon Sep 17 00:00:00 2001 From: Mohammed Kabir Date: Sat, 22 Apr 2017 15:25:33 +0200 Subject: [PATCH] commander : add support for calibrating 4 magnetometers --- src/modules/commander/mag_calibration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/mag_calibration.cpp b/src/modules/commander/mag_calibration.cpp index 6fee6b3a677..a7c7b63cd33 100644 --- a/src/modules/commander/mag_calibration.cpp +++ b/src/modules/commander/mag_calibration.cpp @@ -62,7 +62,7 @@ #include static const char *sensor_name = "mag"; -static constexpr unsigned max_mags = 3; +static constexpr unsigned max_mags = 4; static constexpr float mag_sphere_radius = 0.2f; static unsigned int calibration_sides = 6; ///< The total number of sides static constexpr unsigned int calibration_total_points = 240; ///< The total points per magnetometer