Quote:
Originally Posted by Joohoo
I know where those locations translate to, but do you know or anyone know if this works with the code for the 2.4 compiler?
|
I believe I can answer this. The Vex uses the 2.4 compiler and MPLAB version 7.4, exactly the same as the code versions in the kit of parts.
To get this to work properly, you will also need to integrate Kevin's "encoder" code from his website. This will allow the IR sensor to be sampled properly. If you are already using encoders on your robot you may have done this.
The next thing you'll have to do is to slightly modify Kevin's instructions as to how to integrate the IR code. When his instructions tell you to modify the line in encoder.c where it calls the IR's interrupt channel ISR, you will have to do this in user_routines_fast.c. You will also have to comment out the call to "#include ifi_frc.c" and add in the "#include ifi.aliases.h" and "#include ifi_default.h".
I'm certain I have forgotten one or two minor points, but I think the most essential parts have been covered.
Kevin if you have any additional comments, please add them.