Add files via upload

Switched the pan and slider stepper driver pins.
This commit is contained in:
isaac879
2020-08-17 05:04:48 +01:00
committed by GitHub
parent 9166b8310b
commit fcad16b2c7
3 changed files with 26 additions and 17 deletions
@@ -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"));
// }
// }
}
/*--------------------------------------------------------------------------------------------------------------------------------------------------------*/