dzid26 / StepperServoCAN

Closed loop stepper motor controller with CANbus capabilities. This Project open source hardware and code, support platformio build and upload firmware.
https://shop.retropilot.org/product/stepperservocan
19 stars 5 forks source link

CAN blocks calibration #3

Closed dzid26 closed 1 year ago

dzid26 commented 1 year ago

When motor is commanded by CAN control message, the control_api.c interface is interfering with calibration.

Temporary solution is to make sure CAN messages are not sent during calibration.

dzid26 commented 1 year ago

Fixed by allowing control only if there is no (calibration) error. https://github.com/dzid26/RetroPilot-SERVO42B/commit/4f8bd2443e07392180b0506b68ab8a04c19272f8