Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   2005 default code (http://www.chiefdelphi.com/forums/showthread.php?t=32257)

Anthony Kesich 10-01-2005 17:27

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

kevin.fort 11-01-2005 16:12

Re: 2005 default code
 
Quote:

Originally Posted by Anthony Kesich
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

That helps but is that the entire default code?
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

CJO 11-01-2005 16:18

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

Mark McLeod 11-01-2005 16:47

Re: 2005 default code
 
Quote:

Originally Posted by kevin.fort
That helps but is that the entire default code?
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

Someday soon, but not quite yet.

"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

stephenthe1 11-01-2005 16:51

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

deltacoder1020 12-01-2005 02:34

Re: 2005 default code
 
Quoted directly from the page:
Quote:

2005 RC User Default Code (zip, - available soon), with camera code - works only with C18 Compiler (ver 2.4) from Microchip.
Note the "with camera code" and the "available soon".

Edmund 13-01-2005 01:39

Re: 2005 default code
 
Quote:

Originally Posted by Anthony Kesich
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.

Since I would REALLY like to see the scripting stuff occuring, the code shown at the kickoff during the 15 seconds would be really helpful for me. However, having gone to http://kevin.org/frc/ , and downloading the file description "Raw build directory of the scripted navigation demo shown at the kick-off. An updated version is in the works." , file name "navigation_frc2005_01_08.zip" I HAVE NOT found the autonomous code so promised shown during the kick off. All I see is
Quote:

while (autonomous_mode) /* DO NOT CHANGE! */
{
if (statusflag.NEW_SPI_DATA) /* 26.2ms loop area */
{
Getdata(&rxdata); /* DO NOT DELETE, or you will be stuck here forever! */

/* Add your own autonomous code here. */

// robot_control();

Generate_Pwms(pwm13,pwm14,pwm15,pwm16);

Putdata(&txdata); /* DO NOT DELETE, or you will get no PWM outputs! */
Where is the autonomous code? Perhaps I am clueless and it is in another file, if so, please point it out to me.

Thank you.

-Edmund

Anthony Kesich 13-01-2005 01:48

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

CJO 13-01-2005 02:15

Re: 2005 default code
 
Also, you can add your own control where robot_control() is.

Astronouth7303 14-01-2005 21:09

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.)

Human Player 16-01-2005 12:59

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

ten3brousone 18-01-2005 00:39

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

ECM 18-01-2005 20:04

Re: 2005 default code
 
Quote:

Originally Posted by ten3brousone
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

  1. The version of the compiler:
    Quote:

    Originally Posted by Mark McLeod
    "2005 RC User Default Code (zip, - available soon), with camera code - works only with C18 Compiler (ver 2.4) from Microchip."

    note that the this code is available for download from Innovation First site. http://www.ifirobotics.com/docs/frc-...2-2005v2.4.zip
  2. The CMU camera code is already built and ready. Check the code for functioning with the Compiler version indicated above in the program MP LAB IDE version 6.62, developed by Microchip Technology Inc. for Microchip micro-controllers.

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. :)

CJO 18-01-2005 22:23

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.zip
2) 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.zip

So, 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.

davidhoare 19-01-2005 11:13

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