Go to Post Who would think 130 points would be a losing score! - Chris Fultz [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-01-2004, 23:57
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
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.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #2   Spotlight this post!  
Unread 29-01-2004, 09:57
tml240's Avatar
tml240 tml240 is offline
bahh
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Ann Arbor, MI
Posts: 63
tml240 is on a distinguished road
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?
__________________

OHL 2004- ultimate NHL 2004 MOD
  #3   Spotlight this post!  
Unread 29-01-2004, 11:26
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

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).
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #4   Spotlight this post!  
Unread 29-01-2004, 13:48
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: FIRST Programming Tutorial

Is it based on (or use stuff from) the CD?
  #5   Spotlight this post!  
Unread 29-01-2004, 17:38
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

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.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #6   Spotlight this post!  
Unread 29-01-2004, 17:54
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
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   Spotlight this post!  
Unread 29-01-2004, 21:04
IMDWalrus's Avatar
IMDWalrus IMDWalrus is offline
This is a line...
AKA: Paul
FRC #0818 (Genesis '02)
Team Role: Alumni
 
Join Date: Mar 2003
Rookie Year: 2003
Location: Michigan
Posts: 617
IMDWalrus is a splendid one to beholdIMDWalrus is a splendid one to beholdIMDWalrus is a splendid one to beholdIMDWalrus is a splendid one to beholdIMDWalrus is a splendid one to beholdIMDWalrus is a splendid one to beholdIMDWalrus is a splendid one to behold
Send a message via AIM to IMDWalrus
Re: FIRST Programming Tutorial

Quote:
Originally Posted by Astronouth7303
Do you have any previews/outlines/betas yet? This my first big use of C, so I'd like to look over something
If you can get it, the book "The C Programming Language" is quite possibly the single best resource out there. It was written by the two men who created the language, and it seems to be very comprehensive.

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   Spotlight this post!  
Unread 30-01-2004, 00:33
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: FIRST Programming Tutorial

Quote:
Originally Posted by IMDWalrus
If you can get it, the book "The C Programming Language" is quite possibly the single best resource out there. It was written by the two men who created the language, and it seems to be very comprehensive.
Yes, Kernighan & Ritchie (seasoned programmers just call it "K and R") is the reference for the language, but just as you wouldn't want to learn to speak French using a French dictionary, I wouldn't bother trying to learn C with this book because it's more of a C dictionary. If you buy this book (and you should if you're serious about learning C), make sure you get the second edition, which covers ANSI standard C.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #9   Spotlight this post!  
Unread 31-01-2004, 00:16
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

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)
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #10   Spotlight this post!  
Unread 31-01-2004, 00:54
Guest
 
Posts: n/a
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 ).
  #11   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.
  #12   Spotlight this post!  
Unread 05-02-2004, 23:44
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

another small update, as well as some corrections/clarifications.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #13   Spotlight this post!  
Unread 29-01-2004, 21:22
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 Astronouth7303
Do you have any previews/outlines/betas yet? This my first big use of C, so I'd like to look over something
As I mentioned in my first post, you can get whatever the most up-to-date version is here (I will be updating it every time I finish a new section or two):
http://www.thedevelopersalliance.com...rogramming.pdf

--edit-- a small update, added info on do while, switch, continue, and break statements.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)

Last edited by deltacoder1020 : 29-01-2004 at 22:40.
Closed Thread


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 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


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

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