Go to Post Mentor: How is that held in place? CAD Lead: Go to the hardware store and buy a bag of constraints and put the constraints on the robot. - Kenyow [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 16-08-2007, 00:07
andyhoyt911's Avatar
andyhoyt911 andyhoyt911 is offline
Yes, I'm a girl. Thanks.
AKA: Adrianna Hoyt
FRC #0306 (Team 306)
Team Role: Communications
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Corry PA
Posts: 15
andyhoyt911 has a spectacular aura aboutandyhoyt911 has a spectacular aura aboutandyhoyt911 has a spectacular aura about
Send a message via AIM to andyhoyt911 Send a message via MSN to andyhoyt911 Send a message via Yahoo to andyhoyt911
Teach me?

Hey everyone!
I was wondering if someone could help me with programming. We use MPLAB(not even sure if thats what everyone uses, or just us) and I have no idea how to program. I need to learn, because nobody else on our team knows either. So can someone either point me to a good tutorial, or possibly teach me how?

Thanks.

-Adrianna
__________________
"And I had to hold on to his head and he was going 'blakbjlsdfblkabkjbalkj' and when I let go of him, he was doing laps around the office!"




  #2   Spotlight this post!  
Unread 16-08-2007, 00:36
Deacon Blues's Avatar
Deacon Blues Deacon Blues is offline
Public Relations Director of 2199
AKA: James Taylor
FRC #2199 (Robolions)
Team Role: Marketing
 
Join Date: Jun 2007
Rookie Year: 2006
Location: Eldersburg, maryland
Posts: 48
Deacon Blues is an unknown quantity at this point
Send a message via AIM to Deacon Blues
Re: Teach me?

You may have already seen this, but http://www.chiefdelphi.com/forums/sh...ad.php?t=30976 is infinitely helpful in getting started. Plus read through all the documentation and whatnot pertaining to what you want to do, along with checking out the internal comments within each of the sections of code. At least, our default code came with comments when I was looking through it.

Anyway, not too helpful, but it could get you started.


Also, Demonoid? Needs more OiNK, #it, or x264.
__________________
I am totally that dude from 2199 at Chesapeake and BoB who looked like Jesus.

Also social networking: Myspace , Pownce, Facebook, and on LL as DeaconBlues.
  #3   Spotlight this post!  
Unread 16-08-2007, 00:42
Doug G's Avatar
Doug G Doug G is offline
Coach / Teacher
FRC #0701 (Robovikes)
Team Role: Coach
 
Join Date: Dec 2002
Rookie Year: 2001
Location: Fairfield, CA
Posts: 880
Doug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond repute
Re: Teach me?

Have you searched the papers in CD-Media? There are some good resources there!! Do you have a copy of MPLAB? My next suggestion is start with the basic user code and read its comments. It is very well commented (although I feel maybe too much is there for starting out) and learn how to modify some of the variables within it. Better yet, have the robot there with you. Tweak the basic code so it does something different like have it drive forward when you move the joystick to the left or have it spin around when you press a joystick button. Dedicate some time to experiment with the code and get used to syntax, declarations, and write a function or two!
__________________
Work Hard, Have Fun, Make a Difference!

  #4   Spotlight this post!  
Unread 16-08-2007, 02:29
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Teach me?

Remember you also need C18, which is in fact the compiler. MPLAB is just the IDE(Integrated Development Environment). NOTE: you can only use the V2.4 of C18. The new ones don't work. You should have gotten this in your kit Microchip CD. If you don't have it or can't find it pm me with your email.

Good Luck...you have a long road ahead of you...but the EFFORT is well worth it.
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
  #5   Spotlight this post!  
Unread 16-08-2007, 03:06
Akash Rastogi Akash Rastogi is offline
Jim Zondag is my Spirit Animal
FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Manchester, Connecticut
Posts: 7,003
Akash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond repute
Re: Teach me?

Hello again =),

I used simple programming tutorials and books when learning C. Check out www.programmingtutorials.com
Its free and surprisingly very fast to learn C or any other language.
__________________
My posts and opinions do not necessarily reflect those of my affiliated team.
['16-'xx]: Mentor FRC 2170 | ['11-'13]: Co-Founder/Mentor FRC 3929 | ['06-'10]: Student FRC 11 - MORT | ['08-'12]: Founder - EWCP (OG)
  #6   Spotlight this post!  
Unread 16-08-2007, 03:46
andyhoyt911's Avatar
andyhoyt911 andyhoyt911 is offline
Yes, I'm a girl. Thanks.
AKA: Adrianna Hoyt
FRC #0306 (Team 306)
Team Role: Communications
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Corry PA
Posts: 15
andyhoyt911 has a spectacular aura aboutandyhoyt911 has a spectacular aura aboutandyhoyt911 has a spectacular aura about
Send a message via AIM to andyhoyt911 Send a message via MSN to andyhoyt911 Send a message via Yahoo to andyhoyt911
Re: Teach me?

thanks everyone
__________________
"And I had to hold on to his head and he was going 'blakbjlsdfblkabkjbalkj' and when I let go of him, he was doing laps around the office!"




  #7   Spotlight this post!  
Unread 16-08-2007, 13:08
SamC SamC is offline
.
AKA: Sam Couch
FRC #0103 (Cybersonics)
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Philadelphia, PA
Posts: 583
SamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond reputeSamC has a reputation beyond repute
Re: Teach me?

I know you already stated that you are using MPLab, but is there any reason that for your first year you can't use EasyC? As much as people say it limits you and whatever else, I think it would be very useful to at least play with it during the off-season... Just another idea
  #8   Spotlight this post!  
Unread 16-08-2007, 13:15
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,511
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Teach me?

Quote:
Originally Posted by SamSofa330 View Post
I know you already stated that you are using MPLab, but is there any reason that for your first year you can't use EasyC? As much as people say it limits you and whatever else, I think it would be very useful to at least play with it during the off-season... Just another idea
Sam is right.

For FIRST, easyC doesn't limit at all. It makes the simple, mundane code much easier and quicker to do; but it still allows custom code to be written in plain C. It's really a huge time saver.

I know a lot of programmers avoid EasyC because it's easier and they don't want their ego's hurt, but c'mon, it's a win/win situation. The code is done quicker, with less chance of syntax errors. And if you don't believe complex things can be done with it, look at team 40; they program entirely in easyC.

Also, for the programmers that defiantly stick to MPlab or other IDEs; I work at Northrop Grumman in the satelite area. Most of the programming is done in a program similar to EasyC, not an IDE like Mplab.
  #9   Spotlight this post!  
Unread 16-08-2007, 13:16
dtengineering's Avatar
dtengineering dtengineering is online now
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,832
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: Teach me?

Do you have access to a VEX system? The VEX robots can be programmed using "C" and MPLAB and are much easier to take home to work on (and pick up when they decide to start smashing into everything because of a bug in the code.)

I have found that my students have had good success teaching themselves to program VEX and FRC machines using the tutorials and assistance available on CD and by... gasp... reading the manuals.

It is kind of dry, but if you stick with it, you should have some killer auto modes by March. Best of all, perhaps, with your experience as a driver you should be able to develop drive control code that makes your robot respond really well in telop mode as well.

Jason
  #10   Spotlight this post!  
Unread 16-08-2007, 13:27
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,511
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Teach me?

Quote:
Originally Posted by dtengineering View Post
Do you have access to a VEX system? The VEX robots can be programmed using "C" and MPLAB and are much easier to take home to work on (and pick up when they decide to start smashing into everything because of a bug in the code.)

I have found that my students have had good success teaching themselves to program VEX and FRC machines using the tutorials and assistance available on CD and by... gasp... reading the manuals.

It is kind of dry, but if you stick with it, you should have some killer auto modes by March. Best of all, perhaps, with your experience as a driver you should be able to develop drive control code that makes your robot respond really well in telop mode as well.

Jason
Yeah, building a sqaurebot with encoders on the drive, an ultrasonic sensor, Ir sensors, line followers, and maybe even touch sensors would keep you happy for a long time.

I personally would wire up teh KOP gyro to a squarebot and put encoders on the drive to try to make some decent autonomous drive functions.

I've found if you give yourself a project you want to do, you'll learn better than if you're just trying to learn.
  #11   Spotlight this post!  
Unread 18-08-2007, 02:28
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 688
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: Teach me?

Can you guys point me in the right direction to do VEX with MPLAB? Is it the same MPLAB as the FRC robots but with VEX-specific code? I actually had some project ideas for the VEX and, yes, I could be using EasyC but... Well, we'll leave that debate alone.

Last edited by Roger : 18-08-2007 at 02:32.
  #12   Spotlight this post!  
Unread 18-08-2007, 14:13
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,511
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Teach me?

Quote:
Originally Posted by Roger View Post
Can you guys point me in the right direction to do VEX with MPLAB? Is it the same MPLAB as the FRC robots but with VEX-specific code? I actually had some project ideas for the VEX and, yes, I could be using EasyC but... Well, we'll leave that debate alone.
start here;
http://www.vexlabs.com/vex-robotics-downloads.shtml
  #13   Spotlight this post!  
Unread 19-08-2007, 21:24
aaeamdar's Avatar
aaeamdar aaeamdar is offline
Post-A-Holic
AKA: Paul Dennis
FRC #1719 (The Umbrella Corp)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Baltimore, MD
Posts: 231
aaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant future
Re: Teach me?

Quote:
Originally Posted by AdamHeard View Post
I know a lot of programmers avoid EasyC because it's easier and they don't want their ego's hurt, but c'mon, it's a win/win situation. The code is done quicker, with less chance of syntax errors. And if you don't believe complex things can be done with it, look at team 40; they program entirely in easyC.
Adam,

While EasyC may not limit you at all for FRC (I've never tried it, only done it the normal way), it seems to me that if one relied on it consistently, this might hamper development of actual programming skills. While this may not be of any concern if you just want to program something and get it done and over with, if you are seeking to develop these skills, it might be better to build from floor 0.

-Paul
  #14   Spotlight this post!  
Unread 19-08-2007, 22:10
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
Re: Teach me?

Easy C is useful to do 2 things. a) teach basic control flow and algorithmic processes. b) get a non-programmer started and through an FRC season.

If any of the following conditions are true, then you should be migrating to MPLab tools as soon as you can.

1) If you are going to major in engineering, computer science, or science.
2) If you need to do professional grade embedded programming.

One book that I like for teaching 'C' is the following:
http://www.amazon.com/Sams-Teach-You.../dp/0672324482

Note that it is NOT the 'C++' book but IS THE 'C' book of a very similar name.

Then you can download this from Microsoft:
http://msdn2.microsoft.com/en-us/express/aa700735.aspx

It is the Visual C++ Express. For this educational experience you will NOT do c++ but c programs inside of Visual Express.

After installing Visual Express you should register it. It is free and easy.

Then go File->New->Project->WIN32 Console Application
Call your project 'demo' or whatever you like.

then do a Control-F5 and compile and run it.

Now you are ready to do a 'hello world' application, which starts on about page 29 of the book.

At some point you will need to master everything in the book in your college career.

But, there are several things that will not be done in an FRC controller, like calloc(), malloc(), disk I/O, probably not sorting/searching, linked lists.

Do your 21 days and then it will be time for the next step.
__________________
Ed Barker

Last edited by ebarker : 19-08-2007 at 22:21.
  #15   Spotlight this post!  
Unread 01-09-2007, 17:25
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Teach me?

If you want to learn programming ... I think you may want to actually learn on something other than the robot.

The robot introduces alot of extra stuff that doesn't really help in getting people to think like programmers.

I suggest using either Python or Ruby. These will make it easier to write simple command line programs and start thinking logically. They are very easy syntactically, there is no compiler or useless overhead stuff needed either.
Just download the interpreters at :
http://www.python.org
or
http://www.ruby-lang.org/en/

I'd also suggest getting a book on it.

Once you can do simple (or complicated programs) move over to C. As far as programs ... just make stuff you want... try making a simple board game or something.


-Salik
__________________
Team 701
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
Robotics Enthusiast needed to teach in MA! Julie General Forum 0 23-06-2007 10:35
Can somebody teach me project setup in MpLab? brennerator Programming 1 09-01-2007 08:20
how to teach the newbies to program? BorisTheBlade Programming 6 24-10-2005 18:56
teach rookies how to search Ken Leung CD Forum Support 2 17-01-2005 00:03
NEED HELP: How to teach AutoCAD Erin Rapacki Inventor 9 09-11-2003 09:57


All times are GMT -5. The time now is 19:36.

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