From f4eaea99c55e160ef2471d31ec1ab3b476e16ac7 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 1 Aug 2017 12:44:44 +0200 Subject: [PATCH] Temp cal: Use correct constants --- src/modules/events/temperature_calibration/polyfit.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/events/temperature_calibration/polyfit.hpp b/src/modules/events/temperature_calibration/polyfit.hpp index 38bb457e80..960afd83f4 100644 --- a/src/modules/events/temperature_calibration/polyfit.hpp +++ b/src/modules/events/temperature_calibration/polyfit.hpp @@ -140,7 +140,7 @@ public: } for (unsigned i = 0; i < _forder; i++) { - res[i] = 0.0f; + res[i] = 0.0; for (int j = 0; j < _forder; j++) { res[i] += IVTV(i, j) * (double)_VTY(j); @@ -158,7 +158,7 @@ private: void update_VTY(double x, double y) { - double temp = 1.0f; + double temp = 1.0; PF_DEBUG("O %.6f\n", (double)x); for (int8_t i = _forder - 1; i >= 0; i--) {