![]() |
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. |
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?
|
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).
|
Re: FIRST Programming Tutorial
Is it based on (or use stuff from) the CD?
|
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.
|
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
|
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... :) |
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. |
Re: FIRST Programming Tutorial
Quote:
-Kevin |
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) |
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 ;) ). |
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. |
Re: FIRST Programming Tutorial
another small update, as well as some corrections/clarifications.
|
| All times are GMT -5. The time now is 04:23. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi