For one, I did a bunch of Serial prints at the end of my and thats where it showed i not incrementing or decrementing. I tried what you asked and it did show i going up and down but not past 1 or 3 or to through the end of the switch, which is what I need.
Any ideas why that might be?
I put the serial results under 'code' just so its easier to read.
Again, first value is the IR code, then left pmw, right pmw, s value, i value, and direction motors
0,0,0,3,2,65
0,0,0,3,2,65
0,0,0,3,2,65
up
650130,120,120,4,2,65
650130,120,120,4,2,65
650130,120,120,4,2,65
left
1
912274,0,0,3,2,65
912274,0,0,3,2,65
left
1
912274,0,0,3,2,65
left
1
912274,0,0,3,2,65
912274,0,0,3,2,65
right
3
256914,0,0,3,2,65
right
3
256914,0,0,3,2,65
256914,0,0,3,2,65
256914,0,0,3,2,65
256914,0,0,3,2,65
256914,0,0,3,2,65