![]() |
Re: Third Encoder Channel
I'm not concerned about a third encoder, but that is not to say I don't need help.
Encoders were the last thing on our minds putting the robot together. Now the team would like to use them to get accurate distance measures. The problem I am thinking exists is with Kevins code, Digital's 1,2,6&8 are used for the encoders, and I assume the interrupt routines. We are using those digitals already on the robot. (1-11 and 17,18 are all used) Where specifically do I need to change the interrupt code to have the interrupts function for say... digitals 12,13,14,15. I understand needing to change the user_routines.c file for INPUT/OUPUT but interrupts confuse me. :confused: Also, I see in encoder.h that Kevin is #define ing the XXX_Encoder_Phase_B_Pin's but not the Phase_A_Pins? Am I missing something? :confused: Thanks in advance for your assistance. Phil |
Re: Third Encoder Channel
Quote:
|
Re: Third Encoder Channel
1. Can I change at least digital 6&8 to something else.
We have a wiring harness that is pulled into dig 1-11. This can be moved up to 3-13, but has to stay together... 2. Do I need to change anything in the Interrupt routines if the answer to #1 is yes? Thanks, Phil |
Re: Third Encoder Channel
Quote:
You'll need to change the following two lines found in encoder.h to reflect the new digital inputs. Code:
#define LEFT_ENCODER_PHASE_B_PIN rc_dig_in06 |
Re: Third Encoder Channel
I will mod the code tonight (This work thing keeps getting in the way of robotics).
Thanks for the quick responses. Phil |
| All times are GMT -5. The time now is 19:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi