My first question is, can you get the motor running without anti-cogging?
If so, then you will need to play with velocity gains and integrator gains. Mine needed to be bumped up.
I started with what is written below for my M8325s motor driven by an S1 running 0.6.10 firmware.
The values below were my starting values and I needed to bump those up 2X or more to get any results, along with increasing the max torque.
Then I increased the start velocity and end velocity to keep it running without stalling.
Unfortunately, I don’t have a solid under standing of the parameters, so I kept playing around with the values until something happened. If I can find good way to measure the cogging torque I can do a classic DOE to fine tune the process.
Preparation
odrv0.axis0.controller.config.vel_gain = 0.25
odrv0.axis0.pos_estimate = odrv0.rs485_encoder_group0.raw
Absolute Encoder Reference Frame
odrv0.axis0.pos_vel_mapper.config.offset = 0.0
odrv0.axis0.pos_vel_mapper.config.offset.valid = True
odrv0.axis0.pos_vel_mapper.config.approx_init_pos = 0.0
odrv0.axis0.pos_vel_mapper.config.approx_init_pos_valid = True
odrv0.axis0.controller.config.absolute_setpoints = True
Enable Anticogging
odrv0axis0.controller.config.vel_gain = 0.25
odrv0.axis0.config.anticogging.max_torque = 0.15
odrv0.axis0.config.anticogging.calib_start_vel = 0.5
odrv0.axis0.config.anticogging.calib_end_vel = 0.05
odrv0.axis0.config.anticogging.calib_coarse_integrator_gain = 10
odrv0.axis0.requested_state = AxisState.ANTICOGGING_CALIBRATION
odrv0.axis0.config.anticogging.enabled = True
odrv0.save_configuration()