vedderb / bldc

The VESC motor control firmware
2.18k stars 1.35k forks source link

Perform FOC offsets calibration when running FOC detection #635

Closed TechAUmNu closed 1 year ago

TechAUmNu commented 1 year ago

Undriven offsets are not measured on startup as the motor might be spinning (reboot from crash, etc) So the only time undriven was measured was manually in VESC Tool. This runs the full offset calibration before detecting the motor to improve detection and make sure the undriven offsets are measured.

vedderb commented 1 year ago

Sorry for the delay on this one. We can add it, but I think it is best without including the undriven offsets as I have seen them make things worse on some setups.

TechAUmNu commented 1 year ago

Removed the undriven calibration, as it may mask a HW issue if automatically calibrated.