Go to Post OK, repeat after me "FIRST is not about the robot". - Foster [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
  #16   Spotlight this post!  
Unread 10-01-2005, 17:27
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
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
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;

Horray for most things! -George Carlin

"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year
  #17   Spotlight this post!  
Unread 11-01-2005, 16:12
kevin.fort kevin.fort is offline
President-Team 1001
FRC #1001 (Hacksaw Robotics)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Cleveland
Posts: 38
kevin.fort is on a distinguished road
Send a message via AIM to kevin.fort
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
  #18   Spotlight this post!  
Unread 11-01-2005, 16:18
CJO's Avatar
CJO CJO is offline
Emeritus Pain in the $@#$@#$@#
AKA: Christopher J. O'Connell
None #1097 (Site 3 Engineering)
Team Role: Alumni
 
Join Date: Feb 2003
Location: Latrobe (over the rainbow), CA
Posts: 217
CJO will become famous soon enoughCJO will become famous soon enough
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
__________________
Team 1097 -- Site 3 Engineering
~~~~~~~~~~~~~~~~~~~~
2003 Sacramento Rookie All Star
2003 Silicon Valley Rookie All Star
2004 Sacramento Engineering Inspiration Award
2004 Sacramento Visualization Award
2004 Outstanding Volunteer Award (G. Glasser)
2004 Silicon Valley Sportsmanship Award
2004 National Visualization Runner Up
2004 Cal Games Finalist
2005 Sacramento Sportsmanship Award
2005 Sacramento #1 seed
2005 Sacramento Finalist

2005 Silicon Valley Sportsmanship Award
2005 Silicon Valley #1 Seed
2005 Silicon Valley Finalist

  #19   Spotlight this post!  
Unread 11-01-2005, 16:47
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,825
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #20   Spotlight this post!  
Unread 11-01-2005, 16:51
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
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
  #21   Spotlight this post!  
Unread 12-01-2005, 02:34
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
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".
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #22   Spotlight this post!  
Unread 13-01-2005, 01:39
Edmund Edmund is offline
Programmer
#1346 (Trobotics)
Team Role: Programmer
 
Join Date: Jan 2005
Location: Vancouver, BC
Posts: 5
Edmund is an unknown quantity at this point
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
__________________
Team 1346
General Motors Canada & David Thompson Secondary
Trobotics
- Programmer

Last edited by Edmund : 13-01-2005 at 01:42.
  #23   Spotlight this post!  
Unread 13-01-2005, 01:48
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
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
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;

Horray for most things! -George Carlin

"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year
  #24   Spotlight this post!  
Unread 13-01-2005, 02:15
CJO's Avatar
CJO CJO is offline
Emeritus Pain in the $@#$@#$@#
AKA: Christopher J. O'Connell
None #1097 (Site 3 Engineering)
Team Role: Alumni
 
Join Date: Feb 2003
Location: Latrobe (over the rainbow), CA
Posts: 217
CJO will become famous soon enoughCJO will become famous soon enough
Re: 2005 default code

Also, you can add your own control where robot_control() is.
__________________
Team 1097 -- Site 3 Engineering
~~~~~~~~~~~~~~~~~~~~
2003 Sacramento Rookie All Star
2003 Silicon Valley Rookie All Star
2004 Sacramento Engineering Inspiration Award
2004 Sacramento Visualization Award
2004 Outstanding Volunteer Award (G. Glasser)
2004 Silicon Valley Sportsmanship Award
2004 National Visualization Runner Up
2004 Cal Games Finalist
2005 Sacramento Sportsmanship Award
2005 Sacramento #1 seed
2005 Sacramento Finalist

2005 Silicon Valley Sportsmanship Award
2005 Silicon Valley #1 Seed
2005 Silicon Valley Finalist

  #25   Spotlight this post!  
Unread 14-01-2005, 21:09
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
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.)
  #26   Spotlight this post!  
Unread 16-01-2005, 12:59
Human Player Human Player is offline
Registered User
#0991
 
Join Date: Jan 2005
Location: Phoenix AZ
Posts: 8
Human Player is on a distinguished road
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
  #27   Spotlight this post!  
Unread 18-01-2005, 00:39
ten3brousone's Avatar
ten3brousone ten3brousone is offline
Kurayami o Samayou
None #1160
Team Role: Programmer
 
Join Date: Dec 2004
Location: San Marino
Posts: 32
ten3brousone is an unknown quantity at this point
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
  #28   Spotlight this post!  
Unread 18-01-2005, 20:04
ECM's Avatar
ECM ECM is offline
Registered User
AKA: Elchin C. Mammadov
#1009 (Vanier Vikings)
Team Role: Student
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Ontario, CA
Posts: 1
ECM is an unknown quantity at this point
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.

Last edited by ECM : 18-01-2005 at 20:24.
  #29   Spotlight this post!  
Unread 18-01-2005, 22:23
CJO's Avatar
CJO CJO is offline
Emeritus Pain in the $@#$@#$@#
AKA: Christopher J. O'Connell
None #1097 (Site 3 Engineering)
Team Role: Alumni
 
Join Date: Feb 2003
Location: Latrobe (over the rainbow), CA
Posts: 217
CJO will become famous soon enoughCJO will become famous soon enough
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.
__________________
Team 1097 -- Site 3 Engineering
~~~~~~~~~~~~~~~~~~~~
2003 Sacramento Rookie All Star
2003 Silicon Valley Rookie All Star
2004 Sacramento Engineering Inspiration Award
2004 Sacramento Visualization Award
2004 Outstanding Volunteer Award (G. Glasser)
2004 Silicon Valley Sportsmanship Award
2004 National Visualization Runner Up
2004 Cal Games Finalist
2005 Sacramento Sportsmanship Award
2005 Sacramento #1 seed
2005 Sacramento Finalist

2005 Silicon Valley Sportsmanship Award
2005 Silicon Valley #1 Seed
2005 Silicon Valley Finalist

  #30   Spotlight this post!  
Unread 19-01-2005, 11:13
davidhoare davidhoare is offline
Registered User
FTC #3706
 
Join Date: Jan 2004
Rookie Year: 2003
Location: cobourg, ON
Posts: 6
davidhoare is on a distinguished road
Unhappy 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.
Thanks!
David Hoare
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
user code to default code phoenixomega001 Programming 5 09-01-2005 00:09
2005 Manuals, FRC Default Code, Other resources Venkatesh General Forum 4 08-01-2005 14:06
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Strange IR sensor movement with default tracker code wun Programming 5 19-03-2004 10:51
Is default code already loaded? quickie25 Electrical 8 19-02-2004 22:51


All times are GMT -5. The time now is 15:44.

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