From 9e4d06fdbc46737e7864522630330d0e6a743155 Mon Sep 17 00:00:00 2001 From: topquark12 Date: Mon, 11 Jan 2021 16:24:43 +0800 Subject: [PATCH] clarify comment --- src/channels.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channels.rs b/src/channels.rs index 037a8b2..2ddf7d8 100644 --- a/src/channels.rs +++ b/src/channels.rs @@ -364,12 +364,12 @@ impl Channels { (duty * max, max) } - // Get actual current passing through TEC + // Get current passing through TEC pub fn get_tec_i(&mut self, channel: usize) -> ElectricCurrent { (self.read_itec(channel) - self.read_vref(channel)) / ElectricalResistance::new::(0.4) } - // Get actual voltage across TEC + // Get voltage across TEC pub fn get_tec_v(&mut self, channel: usize) -> ElectricPotential { (self.read_tec_u_meas(channel) - ElectricPotential::new::(1.5)) * 4.0 }