View Single Post
  #6   Spotlight this post!  
Unread 14-04-2006, 01:47
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
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...