1
0
Fork 0

ld_drive: add setup fn

This commit is contained in:
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){ pub fn power_up(&mut self){
self.ctrl.power_up(); self.ctrl.power_up();
} }