we're having trouble with Kevin W's code. we have an encoder hooked up to digital (interrupt) 1 (left encoder). this encoder is actually working on an arm, so for now we're not bothering with the wheels. here is the code in user_routines_fast. everything else is configured properly. the only thing is that our encoder's "b" phase isn't wired yet. will this mess it up? here's the code, I'm interested if this will even work as I'm somewhat new to this stuff.
Code:
pwm14 = p1_y;
pwm16 = p2_y;
if (Get_Left_Encoder_Count() >= 12)
{
pwm02 = 127;
}
else
{
pwm02 = p3_y;
}