Go to Post This is high school robotics for fun and education. Let's try and keep it that way. - Rod [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 1999
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-06-2002, 21:57
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 00:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi