From 3ba2cc9ddc70908ba3f7e7a3e22d90dcb744ecfd Mon Sep 17 00:00:00 2001 From: topquark12 Date: Fri, 8 Jan 2021 15:52:35 +0800 Subject: [PATCH] channels: voltage measurement refalect actual voltage across TEC --- src/channels.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channels.rs b/src/channels.rs index 4ff5984..d5ef47d 100644 --- a/src/channels.rs +++ b/src/channels.rs @@ -438,7 +438,7 @@ impl Channels { dac_feedback: self.read_dac_feedback(channel), i_tec, tec_i, - tec_u_meas: self.read_tec_u_meas(channel), + tec_u_meas: (self.read_tec_u_meas(channel) - ElectricPotential::new::(1.5)) * 4.0, pid_output, } }