|
Assume basic PBASIC
Posted by Joe Johnson, Engineer on team #47, Chief Delphi, from Pontiac Central High School and Delphi Automotive Systems.
Posted on 3/5/99 6:47 PM MST
In Reply to: Re: Please tell all posted by Daniel on 3/5/99 1:34 PM MST:
Ben,
I would assume basic PBASIC skills. But... explain anything extra tricky you do.
For instance, even though most folks know how to do calculations in PBASIC, many get hung up when it comes to dealing with negative numbers. If you use some elegant method to avoid some of the stranger aspects of unsigned 16 bit arithmatic, explain away.
By the way, does everyone understand at A = A MIN 0 will never change the value of A. This is a very important point with very important consequences (especially for feedback loops). As an example of the odd results you can get if you are not careful the statement A= (128 - error) MIN 0 will yield very odd results if error is ever greater than 128. In fact if error was 129 for example, A would be equal to 255. This would be a disaster if your feed back loop was expecting the motor to be driven in full reverse (i.e. 0) but it was in fact driven in full forward (i.e. 255).
Well, once again I have gone far afield.
Bottom line, Ben, I hope you right a paper that explains the tricks but leaves the obvious to the STAMP2 manual.
Joe J.
__________________
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.
|