From c19c6445bdcf98aa3ce560e864ec39ce39e6187c Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Thu, 29 Oct 2020 02:53:45 -0700 Subject: [PATCH] fix gain --- firmware/pump_dac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/pump_dac.cpp b/firmware/pump_dac.cpp index af9db90..4ec2568 100644 --- a/firmware/pump_dac.cpp +++ b/firmware/pump_dac.cpp @@ -20,7 +20,7 @@ void SetPumpCurrentTarget(int32_t microampere) // 47 ohm resistor // 0.147 gain // effective resistance of 317 ohms - float volts = 0.000317308f * microampere; + float volts = 0.000321162f * microampere; // offset by volts += 1.65f;