![]() |
Re: Encoder Problem
My mistake. Thanks for pointing that out but would that make a difference for the encoders.
|
Re: Encoder Problem
If you don't recall changing that, then maybe there's others. Obviously, something's different = one works, one dosen't.
How about the fact that you're getting the encoder count for #s 1..4 in one chunk of code, and for #s 1..6 in the other. Is encoder.h set up to use six(6) encoders? PS: The call to Default_Routine() is commented out in both sets of code, so don't expect any changes there to show up once you get encoders working. |
Re: Encoder Problem
I have tried it both ways. I have tried it with all six encoders enabled and I have tried it with 4 enabled. Other than that there are no changes between the encoder.h files. About the default routine I have tried commented and uncommented but it still will only read one encoder.
|
Re: Encoder Problem
It could be that your interrupt handlers are set up wrong in user_routines_fast.c. Have you checked those?
You should be able to drop the user_routines_fast.c from Kevin's code into your project, unless you are using custom timers, or have already written up some autonomous routine. At the very least, check to see if InterruptHandlerLow is set up the same in both sets of code. Hope this helps. |
Re: Encoder Problem
|
Re: Encoder Problem
Quote:
|
Re: Encoder Problem
I am using the exact user routines fast from kevin watsons frc_encoder code.
|
Re: Encoder Problem
Thanks for all of your help. I have finally fixed the problem. I swear that I did not edit the encoder.h file but when I overwrote the old one with one that I got directly from kevin watsons website it fixed the problem.
|
| All times are GMT -5. The time now is 03:23. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi