Treat VREF as always 1.5V when getting tec_i

atse 2024-01-26 15:01:09 +08:00
parent 44466965a9
commit 7259caee47
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ impl Channels {
// 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::<ohm>(0.4)
(self.read_itec(channel) - ElectricPotential::new::<volt>(1.5)) / ElectricalResistance::new::<ohm>(0.4)
}
// Get voltage across TEC