encoderValue = Get_Encoder_Pos(); if(((encoderValue - xEncoderValue) >= 18) && dir==1) { Set_Commutation_and_DutyCycle(table[x],PWM); } //This doesn't work,If motor rotate CCW from 0 to in this case enc value will increase 1024-1023 .... like that.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)