|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
FIRST Programming Tutorial
I am currently in the process of writing a programming tutorial aimed at FIRST Robots. I've completed the first couple of sections on basic programming - you can view those sections here:
http://www.thedevelopersalliance.com...rogramming.pdf (~73kb) Eventually, I hope to go all the way from beginning programming to useful algorithms and optimization, and then possibly to EEPROM. Any feedback would be great. |
|
#2
|
||||
|
||||
|
Re: FIRST Programming Tutorial
hey thx for the tutorial! This can certainly help some of the programmers in our team! When are you planning to release more of these?
|
|
#3
|
||||
|
||||
|
Re: FIRST Programming Tutorial
I'm probably going to be working on this every night (it's something to do until the drivebase is finished
), so chances are you'll be seeing updates fairly quickly. Eventually, I'll probably upload this to the whitepapers section, but until it's done, it'll stay on my server (easier to update). |
|
#4
|
|||||
|
|||||
|
Re: FIRST Programming Tutorial
Is it based on (or use stuff from) the CD?
|
|
#5
|
||||
|
||||
|
Re: FIRST Programming Tutorial
not really - so far, almost all of the stuff is off the top of my head about the C language. then again, some of the stuff on the CD is fairly general as well, so there may be some overlap, but I didn't "get" it from the CD, if that's what you're asking.
|
|
#6
|
|||||
|
|||||
|
Re: FIRST Programming Tutorial
Do you have any previews/outlines/betas yet? This my first big use of C, so I'd like to look over something
|
|
#7
|
||||
|
||||
|
Re: FIRST Programming Tutorial
Quote:
The first edition was written in 1978, but it's still being published (possibly in a second edition...I can't recall). I was extremely lucky and found the book for seventy cents at a used book store...and from what I've seen, it was worth every penny. Too bad I haven't had time to read very much of it... ![]() |
|
#8
|
||||
|
||||
|
Re: FIRST Programming Tutorial
Quote:
http://www.thedevelopersalliance.com...rogramming.pdf --edit-- a small update, added info on do while, switch, continue, and break statements. Last edited by deltacoder1020 : 29-01-2004 at 22:40. |
|
#9
|
||||
|
||||
|
Re: FIRST Programming Tutorial
Quote:
-Kevin |
|
#10
|
||||
|
||||
|
Re: FIRST Programming Tutorial
another update, this one adding data types, mathematical operations, and arrays, as well as some cosmetic changes including a table of contents.
http://www.thedevelopersalliance.com...rogramming.pdf (~126kb) |
|
#11
|
|||
|
|||
|
Re: FIRST Programming Tutorial
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 ). |
|
#12
|
||||
|
||||
|
Re: FIRST Programming Tutorial
Quote:
)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. Last edited by deltacoder1020 : 31-01-2004 at 01:15. |
|
#13
|
||||
|
||||
|
Re: FIRST Programming Tutorial
another small update, as well as some corrections/clarifications.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Compatition | Angela06 | Programming | 30 | 08-04-2005 23:12 |
| Hooking up Controller to computer for programming. | Dragon45 | General Forum | 3 | 30-01-2003 00:22 |
| Pneumatics electrical wiring and programming | archiver | 2001 | 1 | 23-06-2002 23:10 |
| Error found in programming for the pump and pressure switch | sjharobotics | Programming | 4 | 06-02-2002 17:46 |
| pbasic programming | punarhero | Programming | 4 | 21-01-2002 23:32 |