|
Re: Can't get auto mode to run with OI switches
Quote:
|
Originally Posted by kiettyyyy
...why doesnt auto mode pick this up?
|
First of all, comments by others above me certainly apply. However, there is a more fundamental problem:
Code:
autopos = p2_wheel;
autocount ++;
if(autocount >= 26)
{
autopos = currentauto;
}
autopos is set to p2_wheel and then set to currentauto which has never been set...
I believe that that (last) line should be "currentauto = autopos;"...
Regards,
Mike
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|