mirror of
https://github.com/isaac879/Pan-Tilt-Mount.git
synced 2026-08-16 13:03:15 +02:00
Add files via upload
Switched the pan and slider stepper driver pins.
This commit is contained in:
@@ -75,17 +75,17 @@ void initPanTilt(void){
|
||||
multi_stepper.addStepper(stepper_tilt);
|
||||
multi_stepper.addStepper(stepper_slider);
|
||||
digitalWrite(PIN_ENABLE, LOW); //Enable the stepper drivers
|
||||
if(homing_mode == 1){
|
||||
printi(F("Homing\n"));
|
||||
if(findHome()){
|
||||
printi(F("Complete\n"));
|
||||
}
|
||||
else{
|
||||
stepper_pan.setCurrentPosition(0);
|
||||
stepper_tilt.setCurrentPosition(0);
|
||||
printi(F("Error homing\n"));
|
||||
}
|
||||
}
|
||||
// if(homing_mode == 1){
|
||||
// printi(F("Homing\n"));
|
||||
// if(findHome()){
|
||||
// printi(F("Complete\n"));
|
||||
// }
|
||||
// else{
|
||||
// stepper_pan.setCurrentPosition(0);
|
||||
// stepper_tilt.setCurrentPosition(0);
|
||||
// printi(F("Error homing\n"));
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user