Go to Post Remember this: A true leader needs no title to make a difference. - Molten [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 03-03-2007, 11:44
vivek16's Avatar
vivek16 vivek16 is offline
Whoa! college pilot.
AKA: vivek
FRC #2264 (trojan robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: plymouth, minnesota
Posts: 1,227
vivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond repute
Send a message via AIM to vivek16 Send a message via MSN to vivek16
How did you learn to program?

i would really like to learn c over the summer.

what do you suggest to learn the basics?
__________________
"we don't build robots, we build people"
  #2   Spotlight this post!  
Unread 03-03-2007, 11:57
Branden Ghena's Avatar
Branden Ghena Branden Ghena is offline
Previously: tawnos23
FRC #0240 (TEMPEST)
Team Role: College Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Houghton, Michigan (MTU)
Posts: 303
Branden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura about
Re: How did you learn to program?

Take a look at easyC, it has a lot of helpers.
Buy a book on C, it won't all be relevant, but the basics will help.
Program your TI calculator, it's in TI-basic, not C, but the basics of programming, are still there.
__________________
Branden Ghena - Michigan Tech Student and Team 240 Alumnus
Working Towards: Electrical Engineering and Computer Engineering Double Major

"All we have to decide is what to do with the time that is given to us." - Gandalf
  #3   Spotlight this post!  
Unread 03-03-2007, 12:15
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: How did you learn to program?

I taught myself Microsoft QuickBASIC from a book and compiler made back in the 80's.... it really teaches you everything you need. After you learn the logical part of programming, its just syntax after that for computer programming, and that you can find from any old place online, wikipedia will point you in the right direction for links.

However, when you move on to programming embedded processors things get a little more complicated, if you want to take advantage of the parts. There, I suggest you get an 18F series microchip development board such as the HPC explorer or just use a first controller... though learning hardware on the FRC controller isnt such a good idea since many of the pins arent run straight out of the proccessor, or sometimes cant even be accessed by the processor.

In the hardware department, once you learn (E)CCPs (in all of their various modes), ADCs, Timers (and how to and not to use them), Interrupts, Tristates, that about puts you where you need to be.

A touch of assembly never helps... I know a little and the concepts behind it so sometimes it can get you out of a hole you might not be able to get out of with c, and it almost always is more efficient if you need to do something REALLY fast.

if you need any help just give me an email or pm, i'm always happy to help somebody starting out.

team 1024 will be at boilermaker, buckeye, and atlanta, so if you will be at any of those too just ask anyone from 1024 for "Q" and i'll come on over.

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #4   Spotlight this post!  
Unread 03-03-2007, 12:17
dpick1055's Avatar
dpick1055 dpick1055 is offline
David Pick
FRC #1739 (Chicago Knights)
Team Role: Alumni
 
Join Date: May 2005
Rookie Year: 2004
Location: Chicago
Posts: 75
dpick1055 is on a distinguished road
Send a message via AIM to dpick1055
Re: How did you learn to program?

Like tawnos23 some of first programming experiences were on my TI-83. Though my first computer language was VB 6. The thing I like about VB was how simple it was to read. It allows someone who really doesn't know much about programming to really just jump in. If you really just want to learn how to program for FRC I wouldn't really bother with an actual C book, I would check out a lot of the whitepapers here.
__________________
Always remember to take your powered wheels off the ground when first testing code. Otherwise you'll end up with holes in the wall like us
  #5   Spotlight this post!  
Unread 03-03-2007, 12:17
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: How did you learn to program?

Once you have the basics, topcoder is a decent way to cement your skills with algorithms and STL. Warning: anything beyond the Div 2 250pt questions are quite difficult.

As for the basics, just find a task that you want to program, and program it. I just finished a program to parse a text file of FIRST results, it was about 1000 lines or so.

I picked up nearly all of my C++ skills from the first chapter of a DirectX programming book, which had a very nice introduction to the language. However, I had already programmed a lot before, so it wasn't new.

Another option is go to a university's website for their introductory computer science courses and see if they have assignments for download. These will give you tasks to do that are oriented towards steadily building your knowledge.
  #6   Spotlight this post!  
Unread 03-03-2007, 12:23
MrForbes's Avatar
MrForbes MrForbes is online now
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,022
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: How did you learn to program?

FORTRAN on punch cards.....still have the textbook....

Seriously, if you have something that you really want to make work, that requires programming, that's the best way to learn. You'll be highly motivated.

My two sons who can program started with Qbasic, although it can lead to bad habits.

If you really want to understand how computers work, find an old beginning assembly language programming book and an old computer and have fun with it...or as suggested, get into the PIC microcontrollers.
  #7   Spotlight this post!  
Unread 03-03-2007, 16:11
Snappel328's Avatar
Snappel328 Snappel328 is offline
Programmer
AKA: Chris Reins
FRC #1746 (Forsyth Alliance)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Forsyth County
Posts: 33
Snappel328 will become famous soon enough
Re: How did you learn to program?

If your school offers a Computer Science course, take advantage of that. They usually teach you Java, but as the others have said, it helps out alot when it comes to just understanding how programming logically works.
__________________
2006 Peachtree Regional Rookie All-Stars
2006 Championship Imagery Award Winners
2007 Peachtree Regional Imagery Award Winners
  #8   Spotlight this post!  
Unread 03-03-2007, 19:16
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: How did you learn to program?

hmm... a while back i wanted to program a videogame, so i picked up a copy of GameMaker. After you get by the drag and drop stuff, its syntax is very similar to C's, just without the confusing stuff like pointers and class definitions.
I then realized the limitations of an interpereted language and picked up a book on C++. much of the stuff that i read within it i only had a vague idea of- like pointers and data structures (those damned pointers). The only way i was actually able to solidify that information was via application- programming the robot.

by the end of last year i think that i learned all about programming that i would ever need to know for the PIC architecture... which is now why i am trying to solidify that information by teaching it.

now the next problem is to go back to windows programming... eek.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
  #9   Spotlight this post!  
Unread 03-03-2007, 19:59
Chief Samwize Chief Samwize is offline
Registered User
AKA: Sam
FRC #0051 (Wings of Fire)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Pontiac, MI
Posts: 171
Chief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud of
Re: How did you learn to program?

We used easy c this year and i was completly new to it. I learned it during the build season so you can probably learn a lot about programming with a whole 3 months or however long summer is. Easy C also comes with a long help screen where you can trouble-shoot and learn what everything is used for, its really a great program.
  #10   Spotlight this post!  
Unread 03-03-2007, 20:42
vivek16's Avatar
vivek16 vivek16 is offline
Whoa! college pilot.
AKA: vivek
FRC #2264 (trojan robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: plymouth, minnesota
Posts: 1,227
vivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond repute
Send a message via AIM to vivek16 Send a message via MSN to vivek16
Re: How did you learn to program?

well the thing is, we are a rookie team and we have one really good programmer that can work magic with c and it does not take him very long so there is no need for anyone else to learn it.

and we also do not have a shop and the robot is usually stored at a parents house(his garage comes fully stocked with lots of tools and stuff).

and i live in an apartment so if i took the robot i would probably prevent someone else from working on it.

i think i will learn in the summer if they let me have the robot. (i was planning on building myself a smaller robot during spring break from the same parts in the robot that is has a 12"x12" foot print and is about 6 inches high so i can practice programming and play around)
__________________
"we don't build robots, we build people"
  #11   Spotlight this post!  
Unread 03-03-2007, 21:15
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: How did you learn to program?

I learned to program with my TI 83 in 8th grade, the I took a class at my high school freshmen year, where I learned JAVA and C# which really helped me learn about programming logic. That summer I read through all of the default code trying to understand as much as possible and to figure out as much of the differences in C, then when Kevin's camera code came out last year, I did the same thing again. Once you read through and understand it try and make your own. I do that now in my web design class when the teacher gives us code that we can modify to fit our system, I read it and try to make one myself that is simpler.
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
  #12   Spotlight this post!  
Unread 03-03-2007, 21:23
cmptrgy412 cmptrgy412 is offline
Robohawks Programmer
AKA: Jacob G
FRC #1985 (Robohawks)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Missouri
Posts: 7
cmptrgy412 is an unknown quantity at this point
Re: How did you learn to program?

In fourth grade, I really became obsessed with wanting my own website, but the hard way with html, so I got a few books from the library, looked at some source, and learned like that. In websites, I started to want to make more advanced stuff, so I began learning php and javascript, both of which are similar to c and c++ in a lot of ways. After that, I wanted to design my own programs for the computer which is how I got into c/c++ and other languages which all came naturally after php and javascript, so basically start small, build your way up. The more advanced programs you make, the more rewarding you find it so challenge yourself. Sometimes I found that doing a project that is far too advanced for me and struggling through it to finish it helps me with all the smaller projects.

Read, read, read books and source code!
__________________

Last edited by cmptrgy412 : 04-03-2007 at 19:31.
  #13   Spotlight this post!  
Unread 03-03-2007, 21:30
MrForbes's Avatar
MrForbes MrForbes is online now
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,022
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: How did you learn to program?

Quote:
Originally Posted by vivek16 View Post
i think i will learn in the summer if they let me have the robot. (i was planning on building myself a smaller robot during spring break from the same parts in the robot that is has a 12"x12" foot print and is about 6 inches high so i can practice programming and play around)
sounds like you need a VEX kit and the programming kit for it.....any chance your team would buy one?
  #14   Spotlight this post!  
Unread 03-03-2007, 21:35
vivek16's Avatar
vivek16 vivek16 is offline
Whoa! college pilot.
AKA: vivek
FRC #2264 (trojan robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: plymouth, minnesota
Posts: 1,227
vivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond repute
Send a message via AIM to vivek16 Send a message via MSN to vivek16
Re: How did you learn to program?

it depends on how much a vex kit costs
__________________
"we don't build robots, we build people"
  #15   Spotlight this post!  
Unread 03-03-2007, 21:41
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: How did you learn to program?

I think that the Vex kit is around 300 USD but you may be able to get just the controller and program kit from another team for cheaper if they have one they aren't really using.
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
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
What is MAX script and how did you learn programing? BuddyB309 3D Animation and Competition 1 22-02-2006 01:06
I want ro learn how to program! RubberDucky Programming 6 28-03-2005 20:42
What did you learn in todays scrimmages? JohnBoucher Off-Season Events 17 21-02-2005 00:28
How did you learn how to use Inventor? Greg McCoy Inventor 26 24-05-2003 01:55
Would you like to learn how to sign? OneAngryDaisy General Forum 0 05-03-2003 20:11


All times are GMT -5. The time now is 15:33.

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