Go to Post Defense is a good thing! - Kevin Sheridan [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 21-03-2008, 18:06
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
Smile my first time programming

i want to practice programming so next year i can program our robot for frc competition. does anyone know a website where i can learn all of the features to program the onboard controller myself?
  #2   Spotlight this post!  
Unread 21-03-2008, 18:09
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,007
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: my first time programming

There's tons of stuff right here on CD to help with programming.

http://www.chiefdelphi.com/media/search/results/82519

If you need any other help just PM
__________________
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)
  #3   Spotlight this post!  
Unread 21-03-2008, 18:19
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: my first time programming

Quote:
Originally Posted by lilstogi11 View Post
If you need any other help just PM
Or post here! We'd be glad to help!

Welcome to Chief Delphi. We hope you enjoy your stay.

Jacob
  #4   Spotlight this post!  
Unread 21-03-2008, 18:38
Abrakadabra Abrakadabra is offline
Here We Go !!!
AKA: Scott Kukshtel, Mr. K
FRC #3467 (The Windham Windup!)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Windham, New Hampshire
Posts: 160
Abrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant future
Re: my first time programming

Be forewarned that programming next year's robot controller is likely to be a very different experience from years past, as FIRST is moving to an entirely new system. The details have not been released, but there are several rumors floating around here on CD. Word is that we will get the details no later than the Championships in Atlanta next month, so stay tuned!

However, it's never a bad idea to learn C (and maybe C++), as it is still widely used in business and industry, and the knowledge will serve you well next year and into the future.

Good luck!
  #5   Spotlight this post!  
Unread 21-03-2008, 18:50
popnbrown's Avatar
popnbrown popnbrown is offline
FIRST 5125 HOTH Lead Mentor
AKA: Sravan S
FRC #5125 (Hawks on the Horizon)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Illinois
Posts: 367
popnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond repute
Re: my first time programming

Robot programming is not that hard as a matter of fact, Kevin Watson and all those who have made libraries, have made it very easy to program. You should learn some basic C and then code a very simple program.
The main thing that you will need to get used to is where to place your code within the numerous files Kevin Watson and others have written.

First place to start is to get acquainted with C. Many tutorials online or else go to B&N and sit there for an hour or two and read the book or simply buy a book.

Anyother help PM me.
__________________
I am an employee of FIRST. However, the postings on this site are of my own perspective as a FIRST mentor and volunteer and do not necessarily reflect the views of FIRST.

FIRST Team 5125 Hawks on the Horizon Lead Mentor
FRC Team 4096 Ctrl-Z Former Mentor
FTC Team 5203 #19@! Former Mentor
FRC Team 1403 Cougar Robotics Alumni
  #6   Spotlight this post!  
Unread 21-03-2008, 19:09
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
Re: my first time programming

ok. is c++ used on websites also? because if it is then i know very little becasue i customized my myspace by cut and paste and trial and error. and if i make just a program to run autonomous will it affect the joystick controllers or do i have to program them to? just a little update- i just got back from our first competition day. we are 11th place with a good chance of making top 5 maybe!
  #7   Spotlight this post!  
Unread 21-03-2008, 19:13
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: my first time programming

Quote:
Originally Posted by starsROBOTICS View Post
ok. is c++ used on websites also? because if it is then i know very little becasue i customized my myspace by cut and paste and trial and error. and if i make just a program to run autonomous will it affect the joystick controllers or do i have to program them to? just a little update- i just got back from our first competition day. we are 11th place with a good chance of making top 5 maybe!
HTML, javscript and XML are typically used on webpages. MySpace modding is generally HTML and javascript. This is absolutely nothing like C or C++.

If you have the time, I'd recommend trying a simpler language, like BASIC, just to get the feel of a program flow. Then you can start on C, and maybe eventually C++

My 2 cents,
Jacob

P.S. I'd be glad to help you with any of this.
  #8   Spotlight this post!  
Unread 21-03-2008, 19:16
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
Re: my first time programming

Quote:
Originally Posted by whytheheckme View Post
HTML, javscript and XML are typically used on webpages. MySpace modding is generally HTML and javascript. This is absolutely nothing like C or C++.

If you have the time, I'd recommend trying a simpler language, like BASIC, just to get the feel of a program flow. Then you can start on C, and maybe eventually C++

My 2 cents,
Jacob

P.S. I'd be glad to help you with any of this.
Another thing i would like to ask is do you know how to program the robot controller to read the pressure switch to the pneumatic system? i've done all of the pneumatics but its not good for inspections... they let us pass because it works good but they recommend that we use the robot controller.
  #9   Spotlight this post!  
Unread 21-03-2008, 19:32
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: my first time programming

Quote:
Originally Posted by starsROBOTICS View Post
Another thing i would like to ask is do you know how to program the robot controller to read the pressure switch to the pneumatic system? i've done all of the pneumatics but its not good for inspections... they let us pass because it works good but they recommend that we use the robot controller.
I'm REALLY surprised they let you pass inspection.

If you want to get started writing a simple program, fire up easyC. In the initialize block, you can put in the pressure switch (found under Outputs). This will take care of everything for you.

Jacob
  #10   Spotlight this post!  
Unread 21-03-2008, 19:46
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
Re: my first time programming

Have you gone to your competiton yet? if so, how are you guys doing?
  #11   Spotlight this post!  
Unread 21-03-2008, 20:34
popnbrown's Avatar
popnbrown popnbrown is offline
FIRST 5125 HOTH Lead Mentor
AKA: Sravan S
FRC #5125 (Hawks on the Horizon)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Illinois
Posts: 367
popnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond reputepopnbrown has a reputation beyond repute
Re: my first time programming

Second Jacob's idea, try using EasyC.

Other than that what are you using right now to program the robot?

I'm using Kevin Watson's code.

Thing about the Pressure Switch, is that whenever the Pressure gets ablve a certain point it sends a signal out to the RC (there should be a connection between the Pressure Switch and the RC). What you do is you check and see if this signal is on (usually a 1) or off (a 0). When its on you will want to turn off the compressor.

The pressure switch is a digital input and the compressor is a relay output.

Figure out which port number for your compressor and pressure switch.
Then using Kevin Watson's code, where XX stands for your port number

relayXX_fwd = !rc_dig_inXX;
relayXX_rev = 0;

Hope that helps!
Sravan
__________________
I am an employee of FIRST. However, the postings on this site are of my own perspective as a FIRST mentor and volunteer and do not necessarily reflect the views of FIRST.

FIRST Team 5125 Hawks on the Horizon Lead Mentor
FRC Team 4096 Ctrl-Z Former Mentor
FTC Team 5203 #19@! Former Mentor
FRC Team 1403 Cougar Robotics Alumni
  #12   Spotlight this post!  
Unread 21-03-2008, 20:47
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: my first time programming

the robot controller uses C but there are similar programming languages, i recommend http://hacketyhack.net/ this is a interactive tutorial that you download that teaches you Ruby but is good for learning basic programming

although i like the idea of learning through easyC
  #13   Spotlight this post!  
Unread 21-03-2008, 20:57
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
Re: my first time programming

Quote:
Originally Posted by basicxman View Post
the robot controller uses C but there are similar programming languages, i recommend http://hacketyhack.net/ this is a interactive tutorial that you download that teaches you Ruby but is good for learning basic programming

although i like the idea of learning through easyC
learning through easyc is still hard because overall what i want to program is the autonomous code, the pressure switch, to control the driving with one joystick, and stuff like that but i dont know how to use the integers and stuff in that catagory.
  #14   Spotlight this post!  
Unread 21-03-2008, 21:01
erikstotle's Avatar
erikstotle erikstotle is offline
Quendi
AKA: Erik
FRC #0107
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Zeeland, MI
Posts: 8
erikstotle is an unknown quantity at this point
Send a message via MSN to erikstotle
Re: my first time programming

It would probably be a good idea to use easyC for this year at least, just as you learn. It lets you see whats going on in the code, but it also lets someone inexperienced in programming see the general flow of the program, and the code that goes along with that flow. At the same time, though, I highly suggest actively trying to read up on how to program in C, and try to understand why the code works the way it does. Trust me, once you get the hang of it, programming by hand is a whole lot funner than using easyC. I found http://www.chiefdelphi.com/forums/sh...ad.php?t=30976 to be fairly helpful when I got started. I think about the 9th post down has a link to a good tutorial to learn the basics of C. Have fun and good luck at the competitions!
  #15   Spotlight this post!  
Unread 21-03-2008, 21:50
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
Re: my first time programming

man this easyc is actually easy thanks guys for all your help! if i still need help ill come ask you
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
For the first time ever, Sanddrag, appearing at the 2007 FIRST Championship! sanddrag Chit-Chat 5 26-03-2007 23:15
First Time Pneumatics SuperBK Pneumatics 6 17-01-2007 20:22
FIRST time FIRST is in CEPHAS Carlos Felipe General Forum 3 14-12-2005 17:53
FIRST in Time Magazine? Dr.Bot FIRST In the News... 3 02-02-2005 23:19
Time Magazine mentions FIRST Venkatesh FIRST In the News... 5 29-12-2004 23:25


All times are GMT -5. The time now is 01:51.

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