|
code changed this year
Posted by Joe Ross at 2/12/2001 4:06 AM EST
Engineer on team #330, Beach Bot, from Hope Chapel Academy and NASA/JPL , J&F Machine, and Raytheon.
In Reply to: Re: Initial Power Spike
Posted by Joe Ross on 2/11/2001 11:36 PM EST:
: We wrote a few lines of code that checked for several of the values coming in being 0. If they are zero then we initialize everything to neutral.
I just checked the code and we are doing something different this year. We are automatically skipping the first packet, not worrying about whether it contains bad data.
We are using a byte in the scratchpad ram to let us keep track of whether it is the first packet. We check that byte and if it is zero, then we set it to a 1, set both wheels output to neutral (not sure if that is necessary) and goto the beginning of the loop (before the serin command) otherwise we continue with the main program.
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
|