From db855532c7aed54f79c40c7cb06e9d006d64c3fa Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Fri, 11 Dec 2020 02:04:23 -0800 Subject: [PATCH] filter less --- firmware/sampling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/sampling.cpp b/firmware/sampling.cpp index 2745133..7f4703c 100644 --- a/firmware/sampling.cpp +++ b/firmware/sampling.cpp @@ -43,7 +43,7 @@ static void SamplingThread(void*) nernstAc = f_abs(r2_opposite_phase - r_2); nernstDc = (r2_opposite_phase + r_2) / 2; - pumpCurrentSenseVoltage = 0.8f * pumpCurrentSenseVoltage + 0.2f * (result.PumpCurrentVoltage - result.VirtualGroundVoltageInt); + pumpCurrentSenseVoltage = 0.7f * pumpCurrentSenseVoltage + 0.3f * (result.PumpCurrentVoltage - result.VirtualGroundVoltageInt); // Shift history over by one r_3 = r_2;