From ec80c7776723be2e312f210e2fa4a781d3fc1073 Mon Sep 17 00:00:00 2001 From: dzid26 Date: Sat, 27 Jan 2024 15:33:29 +0000 Subject: [PATCH] Use max current to measure motor type --- firmware/src/BSP/calibration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/src/BSP/calibration.c b/firmware/src/BSP/calibration.c index 068ada4..f5cebc2 100644 --- a/firmware/src/BSP/calibration.c +++ b/firmware/src/BSP/calibration.c @@ -145,7 +145,7 @@ float StepperCtrl_measureStepSize(void){ uint16_t angle2; A4950_enable(true); - uint16_t stepCurrent = motorParams.currentMa; + uint16_t stepCurrent = I_MAX_A4950; // Measure the full step size // Note we assume machine can take one step without issue/// apply_current_command(0, stepCurrent); //fix the stepper