From 5c7dbe0f24058c6a5ca5f22ce42b8ff0e3cee53b Mon Sep 17 00:00:00 2001 From: Siddharth Bharat Purohit Date: Wed, 25 Jan 2017 23:09:33 +0530 Subject: [PATCH] events: tempcal: run cal for all available gyros --- src/modules/events/temperature_calibration.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/events/temperature_calibration.cpp b/src/modules/events/temperature_calibration.cpp index de67c76e47..bf0995c13b 100644 --- a/src/modules/events/temperature_calibration.cpp +++ b/src/modules/events/temperature_calibration.cpp @@ -213,7 +213,7 @@ void Tempcal::task_main() } //l++; - for (unsigned i = 0; i < 1; i++) { + for (unsigned i = 0; i < num_gyro; i++) { if (_hot_soaked[i]) { continue; } @@ -250,7 +250,7 @@ void Tempcal::task_main() num_samples[i] = 0; } - for (unsigned i = 0; i < 1; i++) { + for (unsigned i = 0; i < num_gyro; i++) { if (_hot_soaked[i] && !_tempcal_complete[i]) { double res[3][4] = {0.0f}; P[i][0].fit(res[0]); @@ -279,7 +279,7 @@ void Tempcal::task_main() } for (unsigned j = 0; j < 3; j++) { - for (unsigned m = 0; m < 3; m++) { + for (unsigned m = 0; m <= 3; m++) { sprintf(str, "TC_G%d_X%d_%d", i, m, j); param = (float)res[j][m]; result = param_set(param_find(str), ¶m);