bigtreetech / BIGTREETECH-S42B-V1.0

The closed-loop drive is to feedback the rotation angle of the stepping motor to the control panel, compare the distance that needs to be rotated with the distance of the actual rotation, calculate the error value, and then compensate, so as to prevent the problem of multi-step and lost step. The closed-loop drive can completely overcome the lost step of the open-loop stepping motor, and can also significantly improve the performance of the motor at high speed
108 stars 53 forks source link

Query/not issue #2

Closed tna11 closed 4 years ago

tna11 commented 4 years ago

Whilst waiting for delivery of this item, and looking at the code, was wondering what the +0x08008000 did on this line

y = (uint16_t)((ReadValue(READ_ANGLE_VALUE)>>1)*2+0x08008000)

Thanks