makerbase-mks / MKS-SERVO42B

MKS SERVO42B is 3d printer closed loop stepper motor NEMA17 MKS SERVO42 developed by Makerbase that prevents losing steps. CPU is STM32F103C8T6 ARM 32-bit Cortex™-M3 CPU Core,72 MHz. Magnetic encoder is Allegro's A1333LLETR-T Contactless 0° to 360° angle sensor IC ,12bit .This Project open source hardware and code,support platformio build and upload firmware...
https://www.aliexpress.com/item/33032696338.html?spm=a2g0o.store_home.productList_8356958.pic_1
GNU General Public License v3.0
166 stars 70 forks source link

Fixing problem with negative degree #10

Closed Solairseir closed 4 years ago

Solairseir commented 4 years ago

Motor is not moving to negative degree values in the current code and it generates error without reason. with this quick fix the motor can go to negative degrees too.

the code already tested on SERVO42B and it is working without problem.

makerbase-mks commented 4 years ago

Hi! I have tested your submission process, but the problem persists. I have added a judgement in the display function to solve this problem.