Go to Post I am really glad that FIRST gives teams the choice to use either students or adults in this role. - dtengineering [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 23-01-2007, 19:28
Keo-san's Avatar
Keo-san Keo-san is offline
Registered User
AKA: Victor Marmol
FRC #1029 (WolvCats)
Team Role: Driver
 
Join Date: Feb 2006
Rookie Year: 2003
Location: Miami, FL
Posts: 25
Keo-san is an unknown quantity at this point
Help Integrating Interrupts and Camera

This year our team is planning on using the camera as well as the KoP gear-tooth sensor. We have gotten both to work successfully but they are in different MPLab Workspaces. I tried adding some of the interrupt files over and I got some errors on the definitions of the PIC processor. This is over my head so any ideas and help are welcome!
__________________
Team 1029

www.wolvcatrobotics.com
CMU '11
  #2   Spotlight this post!  
Unread 23-01-2007, 19:41
sjung9442 sjung9442 is offline
Student Mentor
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Hampton, VA
Posts: 17
sjung9442 is an unknown quantity at this point
Re: Help Integrating Interrupts and Camera

Did you use Kevin Watson's code in the begining? or built you own code for gear tooth sensor?

If you modified Kevin Watson's code, you could try to find all the variables you actually used and compare it with kevin watson's new code.
Well, I think you know about this so I'm not going to talk about it more.

try to compare the defined variables in the default code. (kevin watson's)
that might give you some idea what had been changed.
  #3   Spotlight this post!  
Unread 23-01-2007, 19:44
Keo-san's Avatar
Keo-san Keo-san is offline
Registered User
AKA: Victor Marmol
FRC #1029 (WolvCats)
Team Role: Driver
 
Join Date: Feb 2006
Rookie Year: 2003
Location: Miami, FL
Posts: 25
Keo-san is an unknown quantity at this point
Re: Help Integrating Interrupts and Camera

I used both of Watson's FRC codes. For the interrupts and for the camera, I was doing that as far as I could determine but I found problems once It got into compiling processor definitions
__________________
Team 1029

www.wolvcatrobotics.com
CMU '11
  #4   Spotlight this post!  
Unread 23-01-2007, 20:01
sjung9442 sjung9442 is offline
Student Mentor
FRC #0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Hampton, VA
Posts: 17
sjung9442 is an unknown quantity at this point
Re: Help Integrating Interrupts and Camera

Then, only think I could think of is to re-write the code.
If you understand your old code fully, it is not so hard to do that.
copy the main functions from the old code and try to combine old and new together
  #5   Spotlight this post!  
Unread 23-01-2007, 20:28
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Help Integrating Interrupts and Camera

Run it through a tool like WinDiff to make sure you copied it all over.
  #6   Spotlight this post!  
Unread 24-01-2007, 08:10
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
Re: Help Integrating Interrupts and Camera

Camera uses interrupts for serial communications.
Encoder (gear tooth sensor) outputs should be connected to i/o pins which generate interrupts.


In the Kevin Watson code:
The interrupt routine (see user_routines_fast.c - InterruptHandlerLow) in the camera example only has code to handle the serial port interrupts.

The interrupt routine in the encoder (gear tooth sensor) example has code to handle the serial port interrupts as well as the i/o pin (connected to the encoder outputs) interrupts.

So, when you combine your workspaces use the interrupt service routine from the encoder example.
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
  #7   Spotlight this post!  
Unread 25-01-2007, 22:20
Keo-san's Avatar
Keo-san Keo-san is offline
Registered User
AKA: Victor Marmol
FRC #1029 (WolvCats)
Team Role: Driver
 
Join Date: Feb 2006
Rookie Year: 2003
Location: Miami, FL
Posts: 25
Keo-san is an unknown quantity at this point
Re: Help Integrating Interrupts and Camera

Thanks for all the help guys! I brought my CompSci teacher (who is our mentor) to help on this.Took us a couple of hours and lets just say we got VERY deep.As into the compiler. But if anyone needs the code let me know vmarmol@gmail.com
__________________
Team 1029

www.wolvcatrobotics.com
CMU '11
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
Need help Programming and wiring camera! Amisca Programming 1 14-02-2006 18:37
Emergency Help Needed on Main Board and Camera amateurrobotguy General Forum 9 09-02-2006 21:22
Integrating Robotics into school curriculum nalbonec Starting New Teams 5 14-01-2006 15:17
Help with pots/interrupts mtrawls Programming 10 24-02-2004 17:01
help with Interrupts thoughtful Programming 5 08-01-2004 16:07


All times are GMT -5. The time now is 23:51.

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