From bb3761ba89db56634db2667c7eaf4a0461adbb73 Mon Sep 17 00:00:00 2001 From: Rolf Meeser Date: Mon, 25 Jul 2022 22:37:14 +0200 Subject: [PATCH] Meisei: Fix iMS-100 main temperature --- demod/mod/meisei100mod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demod/mod/meisei100mod.c b/demod/mod/meisei100mod.c index 5a4d64e..d4264ee 100644 --- a/demod/mod/meisei100mod.c +++ b/demod/mod/meisei100mod.c @@ -946,7 +946,7 @@ int main(int argc, char **argv) { if (f > 1.0f) { // Use config coefficients to transform measured frequency to absolute resistance (kOhms) f = 1.0f / (f - 1.0f); - float R = gpx.cfg[53] + gpx.cfg[54]*f + gpx.cfg[55]*f*f + gpx.cfg[56]*f*f*f; + float R = gpx.cfg[53] + gpx.cfg[54]*f + gpx.cfg[55]*f*f - gpx.cfg[56]; // iMS-100 sends known resistance (cfg[44:33]) for 12 temperature sampling points // (cfg[28:17]). Actual temperature is found by interpolating in one of these // 11 intervals.