|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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 |
|
#7
|
||||
|
||||
|
Re: Hardware is all good, what do i do now for software?
okay, thanks a lot iBheat!
|
|
#8
|
||||
|
||||
|
Re: Hardware is all good, what do i do now for software?
Quote:
|
|
#9
|
||||
|
||||
|
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?
|
|
#10
|
||||
|
||||
|
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!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |