![]() |
2005 default code
Can anyone tell me where to find the 2005 default code for the robot
from the kickoff i was under the impression it would be on the website but it is not. Did it come in the boxes of robot parts or have they just not posted it on the first site yet? thx and good luck to everyone, it is going to be a fun year |
Re: 2005 default code
|
Re: 2005 default code
Quote:
not that i dont believe it works but is that an official FIRST site because if it isn how were we supposed to know where to get the code from |
Re: 2005 default code
Quote:
|
Re: 2005 default code
Quote:
ok well maybe im impaired or maybe i just want looking for the right thing Thx again everyone that will be a huge help i mean the robot isnt much good without any code |
Re: 2005 default code
Quote:
|
Re: 2005 default code
Quote:
|
Re: 2005 default code
The zip file on the Innovation First website marked frc-code-1-7-2005.zip has a README.txt file which claims the code is for the 2004 FRC and that the last update was in November for stuff unrelated to anything shown in the kickoff. So it's probably a mistake.
|
Re: 2005 default code
Quote:
so if that is old code where and when do we get the new stuff |
Re: 2005 default code
there's a link on usfirst under "kickoff" that brings you to the ftp server on microchip.com. i think that's the new stuff. it was discussed in this forum thread
|
Re: 2005 default code
Quote:
That's just the IDE... we're still looking for the actual robot default code? |
Re: 2005 default code
is it the full version of visual studio? (all the languages it normally supports) and not a trial?
|
Re: 2005 default code
Quote:
|
Re: 2005 default code
|
Re: 2005 default code
Quote:
also does anyone know where the code for the camera is if it is not included in the default code |
Re: 2005 default code
The file with all of the autonomous code from the kickoff can now be found at Kevin Watson's site (http://kevin.org/frc/) in its raw form with plenty of documentation. There are also many other files there which may aid in program development.
Hope this helps. -Tony K |
Re: 2005 default code
Quote:
like i guess where is the code we are supposed to get. i mean it has to be posted on the first site otherwise how would everyone get it. We need the OFFICIAL 2005 code soon or how can they expect us programmers to get things done |
Re: 2005 default code
Kevin Watson wrote the "official" 2005 scripting system in preparation for the kickoff. Currently there are three "default" systems. 1) the Camera default code which does not work with 2) the IFI default code which does not really work with 3) Kevin Watson's scripting system.
I have a longer discussion of the differences here: http://www.chiefdelphi.com/forums/sh...threadid=32538 |
Re: 2005 default code
Quote:
"2005 RC User Default Code (zip, - available soon), with camera code - works only with C18 Compiler (ver 2.4) from Microchip." http://www.ifirobotics.com/rc.shtml |
Re: 2005 default code
also, if you have time. I'm interested in knowing problems that different teams have run into using quarature encoders. if you would be willing to send me some very simply code for last year, that I could look at (delete any of the team "secrets"), that would help me a lot. I'm learning using last year's robot. (it has one pwm attatched to an arm I want to raise and stop after it goes up like a few feet)
thank you, Stephen |
Re: 2005 default code
Quoted directly from the page:
Quote:
|
Re: 2005 default code
Quote:
Quote:
Thank you. -Edmund |
Re: 2005 default code
All of the autonomous code is in a file called robot.c, if you really want to understand it, you need to read pid.c, gyro.c, encoder.c and their espective headers. The script that runs tha code is in commands.h. If you want a more detialed discussion of the script, i posted something about it here. I hope to fix the grammer later since I am falling asleep at the keyborad right now.
Hope this helps. -Tony K |
Re: 2005 default code
Also, you can add your own control where robot_control() is.
|
Re: 2005 default code
The script itself is in commands.h . I, personally, don't like the setup much and am working to improve it. (you'll here when I finish a more readable form.)
|
Re: 2005 default code
hey everyone the new 2005 default code is up on http://www.ifirobotics.com/rc.shtml#Programming
hope that solves the problem |
Re: 2005 default code
sorry but i am still lost on which version i should download to start coding in. and we do plan on using the CMU camera, but i'm a rookie that started this year so i got confused on whats the actualy compiler this year. i also find that theres different versions for diff compilers or items you want to do
|
Re: 2005 default code
Quote:
I tried to build the project in MPLAB IDE which I downloaded from Kevin Watson's web site http://kevin.org/frc/. It seems to be working with autonomous mode code. In the actual code it says that the main part of code that tells robot where to go is in comments, the suggestion that follows after says that the part of that code you wish to use you have to activate. I'll try to activate that code and download it to the robot. :) |
Re: 2005 default code
Ok,
Here is how things stand at the moment. There are now (thank God) only two "official" code sources. 1) IFI code with camera support, and a somewhat sorted out serial driver. Available here: http://www.ifirobotics.com/docs/frc-...2-2005v2.4.zip2) Kevin Watson's scripting system. Anthony Kesich wrote a guide to the scripting commands. Search his posts. This is the code that was demonstrated at the kickoff. Available Here: http://kevin.org/frc/navigation_frc2005_01_08.zipSo, right now the trick is to integrate the tow. Our team is working on it, we will post in the whitepapers section as soon as we have a working integrated codebase. In addition, Mr. Watson's code currently lacks a math library. We are going to add the CORDIC library in the white papers section which I believe should work. We will post a complete workspace with the scripting guide soon. |
Re: 2005 default code PROBLEMS!
I apologize if this has been answered directly in other forums but I could not find it...
I have set our system up with the v2.2 compiler, but for this problem am not even using it. I downloaded the master code and followed the instructions. It seemed to work fine. I downloaded the frc_default.hex code supplied in the 2005 RC User Default Code ver2.2 archive. (didn't compile it or modify it in any way - just downloaded through the IFI loader...) That gave me rapidly blinking red/green 'program state' LED on the RC and gibberish on the IFIloader terminal window. Trying instead to download the FRCCode.hex that came in the same archive give us slow blinking program state red LED on the RC and nothing in the IFI loader terminal window. (both situations gave yellow solid "rcmode" light on RC, and red flashing "Code Error" light on OI) We are stumped. Any help PLEASE. We have gone back to scratch so many times now we are tearing our hair out. :ahh: Thanks! David Hoare |
Re: 2005 default code PROBLEMS!
Quote:
|
Re: 2005 default code PROBLEMS!
Quote:
That worked - once... We loaded the default 2.4 code and all was great. Then decided we would work on that code, so needed to install the 2.4 compiler...did that, and now THAT SAME CODE will not load successfully. Same red-green rapid flashing :ahh: (again - same code as before. Default IFI downloaded .hex files. No modifications at all. Not compiled.) Does this mean we have a dud controller? We have reset, blanked, and re-manstered it dozens of times. Tried no cables, tethered, wireless, no OI, no joysticks or pwm's, anything... Thanks for your help - what else should we do!?! David |
Re: 2005 default code
Rapidly flashing red/green for program status generally means that a printf() was used before InitializeSerialComms(). Or at least it did last year; I don't know if it applies to the new serial drivers.
|
Re: 2005 default code
http://www.usfirst.org/robotics/2005...s.htm#Section5
Look about 1/2 way down the screen that comes up. It will say: Quote:
If you don't see it, mainly because you are in a rush, the link for the code is: http://www.usfirst.org/robotics/2005...2005_01_08.zip It should work fine, assuming that FIRST used the latest IDE, latest C18, and latest IFI Loader when they did this code. PM me if you need more help. |
| All times are GMT -5. The time now is 00:12. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi