1
0
Fork 0

boot: Set thermostat & LD init output current to 0

This commit is contained in:
linuswck 2024-02-02 17:22:57 +08:00
parent 6096711d2c
commit 4132bfacd3
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ pub fn bootup(
thermostat.setup();
thermostat.power_up();
thermostat.calibrate_dac_value();
thermostat.set_i(ElectricCurrent::new::<ampere>(1.0));
thermostat.set_i(ElectricCurrent::new::<ampere>(0.0));
debug!("Setting up Laser Driver");
let current_source = LdCtrl::new(current_source_phy);
@ -75,7 +75,7 @@ pub fn bootup(
laser.setup();
laser.ld_open();
laser.set_ld_drive_current_limit(ElectricCurrent::new::<ampere>(0.2));
laser.ld_set_i(ElectricCurrent::new::<ampere>(0.15));
laser.ld_set_i(ElectricCurrent::new::<ampere>(0.0));
laser.set_pd_i_limit(ElectricCurrent::new::<milliampere>(2.5));
laser.set_pd_mon_calibrated_vdda(thermostat.get_calibrated_vdda());
laser.power_up();