Quote:
|
Originally Posted by kiettyyyy
Hey all..
I have a potentiometer with detents that is mounted on the oi controller.
I have no idea whats going on.. I set up a static int newautoselect inside user_control.h,
int currentauto;
unsigned int autopos;
unsigned int temp_autopos;
int autocount;
autopos = p2_wheel;
autocount ++;
if(autocount >= 26)
{
autopos = currentauto;
}
if(currentauto > 20 | currentauto < 40)
{
newautoselect = 1;
}
why doesnt auto mode pick this up?
|
Wouldn't you want to use AND not OR because it would always evaluate as true with OR since it is either greater than 20 OR less than 40.