bgkatz / motorcontrol

motor controller firmware
MIT License
239 stars 102 forks source link

encoder linearization about lut_offset value #14

Closed Apex-yuan closed 2 weeks ago

Apex-yuan commented 1 year ago

I am a brushless motor hobbyist and am happy to see this open source project. I have a question about encoder linearization: in calibration.c file int lut_offset = (ENC_CPR-cal->error_arr[0])*N_LUT/ENC_CPR I think the lut_offset should be cal->error_arr[0]*N_LUT/ENC_CPR. What did I do wrong

wwwwwwzj commented 10 months ago

我觉得也不用加ENC_CPR。你有对比过加与不加的校准效果吗?