I m doing a PID tuning. First I defined constant error and try to tune the PID. I input the angle of 40 degrees and got the difference between encoder reading angle and 40 degrees as error in my program. I want to ensure my encorder pulses reading is correct or not, and if not please help me. I used RB4-7 interrupts.
I use MikroC language, PIC 16f877, Pololu Encoder motor.