View Single Post
  #12   Spotlight this post!  
Unread 31-01-2004, 01:12
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: FIRST Programming Tutorial

Quote:
Originally Posted by SilverStar
Some corrections:

1. On the PIC microcontroller that FIRST uses, double is an alias for float (they're the same exact thing, both 32 bit).

2. pg. 14 - c= (char)counter - will simply cause an overflow to "wrap" around, not cause an error (I think)

3. What about pointers? I think they're important enough to be included (I included them in my guide - plug ).
1. thanks for the tip, i'll add a note to that effect (but i do want people to know that they're different in normal C... hopefully they can take away some real-world programming skill too )

2. i'll test it to double-check, but chances are it would cause an overflow error (and my view of the platform will go down if it doesn't)

3. of course they're important - remember that I'm not done with it yet - I was actually planning to do pointers next, and probably macros after that, and I'll throw in variable scope and lifetime somewhere in there.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)

Last edited by deltacoder1020 : 31-01-2004 at 01:15.