|
Re: Encoders not changing...
what other code is being implemented are you using the camera?...GTS?...timers?...other sensors?
make sure the encoder outputs are plugged into the correct inputs.
make sure you are using the right type of encoder, I believe that kevin watson has his code set up for a quadrature encoder.
also make sure that you call all the right functions in the right places ie. encoder_counter() in Interrupt_Vector_low(), encoder1_init() in user_init().
another problem that happened to me was overlapping interrupts. If you do a "find in project" for a bit in the register to see if they are used anywhere else, you may eliminate this problem.
|