Quote:
|
Originally Posted by Astronouth7303
Any wait/pause code is the basis of a DriveForTime() Routine
|
What? DriveForTime should do some driving for a given time ... but I don't see how any waiting is implicit in the function. Am I grossly mistaken? You can use a timer interrupt to drive for the specified amount of time, all you do is say:
Code:
if (time_from_start < time_to_drive) { put code to drive here }
else { as you are done driving, move on to the next thing }
Where's the need to wait? If you are 'pausing' (stuck in the loop for some reason), you sure aren't driving. Care to elaborate your thinking on the matter?