|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|
#3
|
|||||
|
|||||
|
Re: my first time programming
Or post here! We'd be glad to help!
Welcome to Chief Delphi. We hope you enjoy your stay. Jacob |
|
#4
|
|||
|
|||
|
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
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
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
|
|||||
|
|||||
|
Re: my first time programming
Quote:
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
|
|||
|
|||
|
Re: my first time programming
Quote:
|
|
#9
|
|||||
|
|||||
|
Re: my first time programming
Quote:
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
|
|||
|
|||
|
Re: my first time programming
Have you gone to your competiton yet? if so, how are you guys doing?
|
|
#11
|
||||
|
||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |