Go to Post Teams that are consistently designing and end up with weight problems need to look at their design process and make corrections in "Weight Management". - Mike Martus [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 17-05-2005, 12:15
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: BASIC programming

Quote:
Originally Posted by Pat Fairbank
...
Here's the official Basic Stamp Reference Manual which documents all of the BASIC commands.
....
I concur.

To be honest, most of the PBASIC language is non-standard BASIC. Knowing BASIC is more of a hindrance than a help sometimes.

Read the PBASIC manual and you'll be off to a good start.

Some advice.

Forget/ignore the PBASIC manual that has anything to do with direct management of the I/O pins. They are pretty much useless because the RC more or less limited the pins of the STAMP2 to those talking to the Master CPU, The Programming Port (actually not a bad way to get a peripheral to talk to the STAMP2 program via RS-232) and some pins that more or less just turned on LEDs.

Get used to the PBASIC line processing method and avoid using too many parentheses. After coding for a while, I would end up with so many layers of nested ('s and )'s that the code was untouchable. Things got better from me once I decided to go with the Zen of PBASIC rather than fighting it.

Know the ins and outs of 16 bit unsigned math. It is a beast that will bite you in unseemly places at exactly the wrong moment. I can't tell you how many strange robot quirks were tracked down to some 16 bit overflow that only happens when the phase of the moon is just right and the tide is high and the robot driver's middle name has a T in it ;-)

Good luck.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2

Last edited by Joe Johnson : 17-05-2005 at 12:17.
 


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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
Organizing a programming team. scitobor 617 Programming 7 28-01-2005 19:18
Programming and Electronics — Getting Started Sidney San Martín Technical Discussion 7 12-01-2005 15:25
Robot Programming Education phrontist Programming 11 03-05-2004 07:32
Help programming in Visual Basic xxlshortys Programming 0 06-04-2003 08:54


All times are GMT -5. The time now is 22:19.

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