|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||
|
|||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Image Discuss: Gyro Chip Pin OUT | CD47-Bot | Extra Discussion | 7 | 21-02-2003 19:09 |
| Help with the gyro chip | Team852 | Electrical | 1 | 10-01-2003 22:31 |
| Gyro Chip Code | archiver | 2001 | 4 | 24-06-2002 00:57 |
| Is any team using the gyro chip? | Ragin_Kage | Kit & Additional Hardware | 4 | 10-04-2002 12:11 |
| Have YOU used the gyro chip? | FotoPlasma | Technical Discussion | 10 | 31-01-2002 13:26 |