|
Re: Autonomous Code trouble
Quote:
|
Originally Posted by RIgnazio
Even though the comment says that it is a 26.2ms Loop area (I think it was 26.2?) it is in fact 40ms. The autonomous loop runs in 26.2ms space, but your code actually runs in 40ms space...
|
Roger,
Your code is correct but your statement about 40 milliseconds is wrong:
40ms * 40 = 1.6 seconds
40ms * 4 = 0.16 seconds
However, if we assume that the loop cycle is 26 ms we get:
26.2 ms * 40 = 1.048 seconds
26.2 ms * 4 = 0.1048 seconds
Trust the math...
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...
|