Skip to content

Commit

Permalink
Use max current to measure motor type
Browse files Browse the repository at this point in the history
(cherry picked from commit ec80c77)
  • Loading branch information
dzid26 committed Jan 27, 2024
1 parent 85e330b commit 2ab4be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/src/BSP/calibration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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///
A4950_move(0, stepCurrent); //fix the stepper
Expand Down

0 comments on commit 2ab4be3

Please sign in to comment.