Go to Post Does FIRST know about some rare inverted mushroom that I do not? - sanddrag [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
  #1   Spotlight this post!  
Unread 02-24-2006, 03:26 PM
dwc309 dwc309 is offline
Registered User
FRC #1552
 
Join Date: Jan 2006
Location: Niwot High School
Posts: 16
dwc309 is an unknown quantity at this point
Talking porting camera code to 2005 bot controller

We'd like to port the camera code to the 2005 controller so that we can work on it during the upcoming windows starting March 6. I've started that, but ran into the camera serial port shtuff. Any suggestions on the "easy" approach? There has to be code for the ttl serial port for the 2005 controller, right? Is is better to modify that or squeeze the 2006 shtuff into there? Any other suggestions?
  #2   Spotlight this post!  
Unread 02-24-2006, 04:32 PM
JJG13's Avatar
JJG13 JJG13 is offline
Yoda
AKA: Joshua Graffman
None #0180 (SPAM)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Martin County, Florida
Posts: 105
JJG13 has a spectacular aura aboutJJG13 has a spectacular aura aboutJJG13 has a spectacular aura about
Re: porting camera code to 2005 bot controller

Quote:
Originally Posted by dwc309
We'd like to port the camera code to the 2005 controller so that we can work on it during the upcoming windows starting March 6. I've started that, but ran into the camera serial port shtuff. Any suggestions on the "easy" approach? There has to be code for the ttl serial port for the 2005 controller, right? Is is better to modify that or squeeze the 2006 shtuff into there? Any other suggestions?
I believe the only thing you have to do is change the target microprocessor in MPLab and change the library and linker files as specified in one of the text files included with the default code. I ported code the other way (2005 controller to 2006 controller) early in build season and I don't remember having to change anything else.
__________________
Behold the power of SPAM.
  #3   Spotlight this post!  
Unread 02-24-2006, 11:56 PM
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,334
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: porting camera code to 2005 bot controller

Quote:
Originally Posted by dwc309
We'd like to port the camera code to the 2005 controller so that we can work on it during the upcoming windows starting March 6. I've started that, but ran into the camera serial port shtuff. Any suggestions on the "easy" approach? There has to be code for the ttl serial port for the 2005 controller, right? Is is better to modify that or squeeze the 2006 shtuff into there? Any other suggestions?
The code should run just fine on the 2005 RC. Follow the directions in the "Using_Last_Years_FRC.txt" file that I included in the build directory.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #4   Spotlight this post!  
Unread 02-27-2006, 02:28 PM
dwc309 dwc309 is offline
Registered User
FRC #1552
 
Join Date: Jan 2006
Location: Niwot High School
Posts: 16
dwc309 is an unknown quantity at this point
Talking Re: porting camera code to 2005 bot controller

There are still 3 errors. It looks like a struct definition member needs to be defined. The errors are below.

C:\Microchip\First_Code\fVersion_05\serial_ports.c :387:Error [1205] unknown member 'SENDB' in '__tag_100'
C:\Microchip\First_Code\fVersion_05\serial_ports.c :387:Error [1131] type mismatch in assignment
C:\Microchip\First_Code\fVersion_05\serial_ports.c :481:Error [1205] unknown member 'ADDEN' in '__tag_4'
C:\Microchip\First_Code\fVersion_05\serial_ports.c :481:Error [1131] type mismatch in assignment
C:\Microchip\First_Code\fVersion_05\serial_ports.c :520:Error [1205] unknown member 'SENDB' in '__tag_8'
C:\Microchip\First_Code\fVersion_05\serial_ports.c :520:Error [1131] type mismatch in assignment
  #5   Spotlight this post!  
Unread 02-28-2006, 07:01 AM
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: porting camera code to 2005 bot controller

Quote:
Originally Posted by dwc309
There are still 3 errors. It looks like a struct definition member needs to be defined. The errors are below.

C:\Microchip\First_Code\fVersion_05\serial_ports.c :387:Error [1205] unknown member 'SENDB' in '__tag_100'
C:\Microchip\First_Code\fVersion_05\serial_ports.c :387:Error [1131] type mismatch in assignment
C:\Microchip\First_Code\fVersion_05\serial_ports.c :481:Error [1205] unknown member 'ADDEN' in '__tag_4'
C:\Microchip\First_Code\fVersion_05\serial_ports.c :481:Error [1131] type mismatch in assignment
C:\Microchip\First_Code\fVersion_05\serial_ports.c :520:Error [1205] unknown member 'SENDB' in '__tag_8'
C:\Microchip\First_Code\fVersion_05\serial_ports.c :520:Error [1131] type mismatch in assignment
Clean your intermediate (.o files). Project menu -> Clean or manually delete them. That works sometimes, usually after you make many changes and MPLAB is too stupid to update the files.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"

Last edited by The Lucas : 02-28-2006 at 07:04 AM.
  #6   Spotlight this post!  
Unread 02-28-2006, 10:37 AM
dwc309 dwc309 is offline
Registered User
FRC #1552
 
Join Date: Jan 2006
Location: Niwot High School
Posts: 16
dwc309 is an unknown quantity at this point
Talking Re: porting camera code to 2005 bot controller

Thanks for taking the time to help but that was not it. I tried it, but I had started from a fresh directory with no .o files in it. Either way, the error occurs.

It appears to be a struct defined in the 18f8722 chip and not the 18f8520 chip, more to research I suppose. I was hoping to have it ready for the kids when our next window occurs, but I suppose that will have to wait til then.
  #7   Spotlight this post!  
Unread 02-28-2006, 07:16 PM
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: porting camera code to 2005 bot controller

Be advised that my students followed the directions in the "Using_Last_Years_FRC.txt" file and it worked just fine.
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
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
2006 Camera identical to 2005? de_ Programming 6 01-23-2006 03:28 AM
For anyone who doesn't get the camera code..... Jake M Programming 8 01-16-2006 06:56 PM
Trying to import Camera code into program without. Kingofl337 Programming 1 02-18-2005 12:43 AM
heres the code. y this not working omega Programming 16 03-31-2004 03:18 PM
serious problem found - robot controller resets when jarred! KenWittlief Electrical 23 03-19-2003 01:30 PM


All times are GMT -5. The time now is 08:31 AM.

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