1
0
Fork 0

LD: Rst LD current at power_up for soft start

This commit is contained in:
linuswck 2024-01-26 16:40:54 +08:00
parent d391e3a1fb
commit f6677d874c
1 changed files with 5 additions and 1 deletions

View File

@ -105,7 +105,11 @@ impl LdDrive{
}
pub fn power_up(&mut self){
let _ = self.ctrl.set_i(ElectricCurrent::new::<milliampere>(0.0), Settings::LD_DRIVE_TRANSIMPEDANCE, Settings::DAC_OUT_V_MAX);
LdPwrExcProtector::pwr_on_and_arm_protection();
// Wait for LD Power Supply to start up before driving current to laser diode
sleep(30);
self.ld_set_i(self.settings.ld_drive_current);
}
pub fn power_down(&mut self){