ld_drive: add setup fn

master
linuswck 2024-01-09 16:13:42 +08:00
parent b1123047c7
commit be8bf0a8b6
1 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,12 @@ impl LD_Drive{
}
}
pub fn setup(&mut self) {
self.power_down();
self.ld_set_i(ElectricCurrent::new::<milliampere>(0.0));
self.ld_short();
}
pub fn power_up(&mut self){
self.ctrl.power_up();
}