![]() |
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 |
| 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