vedderb / bldc

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

Improve fault handling during detection routines #488

Closed TechAUmNu closed 2 years ago

TechAUmNu commented 2 years ago

Added more checks for faults during detection routines. Always return an error if a fault occurred. Handing for returned errors so later steps do not get run.

TechAUmNu commented 2 years ago

I have tested this with a current limited supply so it causes an under_voltage fault when running the detection routines. Previously some of the routines would continue even with a fault being active.