1
0
Fork 0

ld_drive: rebase to the point that declare set_i

This commit is contained in:
linuswck 2024-01-09 16:23:52 +08:00
parent 277796d2a4
commit d4e074cbd4
1 changed files with 0 additions and 1 deletions

View File

@ -107,7 +107,6 @@ impl CurrentSource {
} }
pub fn set_i(&mut self, current: ElectricCurrent, transimpedance: transimpedance_unit, dac_out_v_max: ElectricPotential) -> ElectricCurrent { pub fn set_i(&mut self, current: ElectricCurrent, transimpedance: transimpedance_unit, dac_out_v_max: ElectricPotential) -> ElectricCurrent {
let v = current * transimpedance;
self.set_dac(current * transimpedance, dac_out_v_max) / transimpedance self.set_dac(current * transimpedance, dac_out_v_max) / transimpedance
} }
} }