Quote:
|
Originally Posted by Alan Anderson
What is it supposed to do? I noticed one odd thing right away:
Code:
if(tickCount >= SECS_TO_TICKS(1))
{
AUTO_STATE = AUTO_FINISHED; //AUTO_SECOND_STATE;
tickCount = 0;
}
Is it really supposed to go to the AUTO_FINISHED state after one second, or did you mean for it to go to AUTO_SECOND_STATE instead?
(If you surround your code with [ code] and [ /code] tags when you post it here, the whitespace formatting will be preserved.)
|
I am trying to get it to go forward for so long then stop. The finish call in that area is to see if it goes through the loop but your right it shouldn't be their. Altho we did that the code is not being sent to the PWMs.