Go to Post Way to steal my thunder, Billfred! :p - Koko Ed [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 19-01-2006, 21:35
GraphicArtDesig's Avatar
GraphicArtDesig GraphicArtDesig is offline
GraphicArtDesigner
FRC #0253 (MRT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Millbrae
Posts: 8
GraphicArtDesig is an unknown quantity at this point
Hardware is all good, what do i do now for software?

Hi

I have:

PC tethered to RC via program port
RC tethered to OI via tether port
TTL Cable connected to Camera
Servo's 1/2 connected to PWM ports 1/2
Camera power inpute connect to PWM port 3
Backup battery is charged up
Main battery is charged up
all connections are not loose everything is good

what do i do now? what program do i load onto the RC? how do I load it? etc etc. Please help
  #2   Spotlight this post!  
Unread 19-01-2006, 21:48
iBheat's Avatar
iBheat iBheat is offline
Registered User
FRC #0418 (Lasa Robotics)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Austin, TX
Posts: 24
iBheat is on a distinguished road
Re: Hardware is all good, what do i do now for software?

Go to Kevin's website (http://kevin.org/frc/) and download the frc_camera.zip file and load the .hex file included in the zip onto the RC using IFI_Loader (http://ifirobotics.com)! Also tripple check the power to the camera because you can fry it easily!
  #3   Spotlight this post!  
Unread 19-01-2006, 22:17
GraphicArtDesig's Avatar
GraphicArtDesig GraphicArtDesig is offline
GraphicArtDesigner
FRC #0253 (MRT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Millbrae
Posts: 8
GraphicArtDesig is an unknown quantity at this point
Re: Hardware is all good, what do i do now for software?

okay great, and it'll look for the green light? is the pan suppose to be plugged into PWM port 1 or 2? or doesn't matter? anyways. So once i load the frc_camera.zip file (i assume the .hex file since it's using IFI loader) what will it do?
  #4   Spotlight this post!  
Unread 19-01-2006, 23:31
iBheat's Avatar
iBheat iBheat is offline
Registered User
FRC #0418 (Lasa Robotics)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Austin, TX
Posts: 24
iBheat is on a distinguished road
Re: Hardware is all good, what do i do now for software?

Pan and Tilt servos are supposed to be plugged into the RC ports PWM1 and PWM02. When you download the zip file you will need to unzip it first and it will create a folder called frc_camera. Then you will need to open ifi_loader and hit browse and go to the frc_camera folder in which there will be a camera.hex file (the only one that will appear in the browse window) just double click that and hit download to start downloading to the RC. Make sure the program light on the RC is orange and it should start blinking once the code starts downloading. Once the code is done downloading a terminal window will pop up that gets feedback from printf() functions in the code.

The code will search for the green light and lock onto it. If you get the bell and whistles version there are two menus a tracking menu and a camera menu where you can change the color values and all of the configuration options from tracking.h and camera.h.
  #5   Spotlight this post!  
Unread 19-01-2006, 23:48
GraphicArtDesig's Avatar
GraphicArtDesig GraphicArtDesig is offline
GraphicArtDesigner
FRC #0253 (MRT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Millbrae
Posts: 8
GraphicArtDesig is an unknown quantity at this point
Re: Hardware is all good, what do i do now for software?

I inpute the code, the tilt works fine, but the pan seems to be stuck, keeps going to the left (If looking at the camera) any ideas?

The code will search for the green light and lock onto it. If you get the bell and whistles version there are two menus a tracking menu and a camera menu where you can change the color values and all of the configuration options from tracking.h and camera.h.[/quote]
  #6   Spotlight this post!  
Unread 19-01-2006, 23:51
iBheat's Avatar
iBheat iBheat is offline
Registered User
FRC #0418 (Lasa Robotics)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Austin, TX
Posts: 24
iBheat is on a distinguished road
Re: Hardware is all good, what do i do now for software?

Hehe all you have to do is open up tracking.h in MP Lab and then change
Code:
// If your camera suddenly moves away from the target once
// it finds it, you'll need to change the sign on one or
// both of these values. Start with the tilt first.
#define PAN_ROTATION_SIGN_DEFAULT -1
#define TILT_ROTATION_SIGN_DEFAULT 1
Recompile and then dump your new hex file onto the RC and the PAN will go the other way!
  #7   Spotlight this post!  
Unread 20-01-2006, 00:01
GraphicArtDesig's Avatar
GraphicArtDesig GraphicArtDesig is offline
GraphicArtDesigner
FRC #0253 (MRT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Millbrae
Posts: 8
GraphicArtDesig is an unknown quantity at this point
Re: Hardware is all good, what do i do now for software?

okay, thanks a lot iBheat!
  #8   Spotlight this post!  
Unread 20-01-2006, 00:12
iBheat's Avatar
iBheat iBheat is offline
Registered User
FRC #0418 (Lasa Robotics)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Austin, TX
Posts: 24
iBheat is on a distinguished road
Re: Hardware is all good, what do i do now for software?

Quote:
Originally Posted by GraphicArtDesig
okay, thanks a lot iBheat!
Anytime!
  #9   Spotlight this post!  
Unread 20-01-2006, 19:13
GraphicArtDesig's Avatar
GraphicArtDesig GraphicArtDesig is offline
GraphicArtDesigner
FRC #0253 (MRT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Millbrae
Posts: 8
GraphicArtDesig is an unknown quantity at this point
Re: Hardware is all good, what do i do now for software?

well I did what you said, the pan doesn't work, the tilt works fine going from about 0 degrees (looking at side of caemra, camera is pointing straight across) to about somewhere about 170 degrees, hitting the metal. The pan works a bit, shifting but gettings hifted back because of the tilt. Any ideas?
__________________
[left]
(Still working on these, made this in like 5 minutes, literally)

"This computer has sound?!" - me
  #10   Spotlight this post!  
Unread 20-01-2006, 21:50
iBheat's Avatar
iBheat iBheat is offline
Registered User
FRC #0418 (Lasa Robotics)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Austin, TX
Posts: 24
iBheat is on a distinguished road
Re: Hardware is all good, what do i do now for software?

Well the first problem is that your servos are reversed you have the PAN servo plugged into the TILT servo PWM out and the TILT servo plugged into the PAN servo PWM out. And for your second problem check if your backup battery is low!
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
Congrats all and good luck on Saturday(Tomorrow) CrimsonDesigns Championship Event 0 16-04-2004 16:48
Dean would make a good Donald! Jessica Boucher Televised Robotics 1 13-04-2004 10:42


All times are GMT -5. The time now is 01:54.

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