Skip to content

Commit

Permalink
Use max current to measure motor type
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Jan 27, 2024
1 parent 7d6e05e commit ec80c77
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///
apply_current_command(0, stepCurrent); //fix the stepper
Expand Down

0 comments on commit ec80c77

Please sign in to comment.