![]() |
CMU Cam not Tracking Properly on Robot
When the camera is on the bench, it tracks perfectly in LabView (after putting a jumper on the pins to flip the Pan). When we hook it into the robot via TTL and PWM 1 (Pan Servo) and 2 (Tilt Servo) it does not track properly. Once it locks on to the target, the camera pans/tilts the target out of the field of view of the camera (the Pan and Tilt Errors increase when they should be decreasing). :ahh:
Anyone else have this same problem? |
Re: CMU Cam not Tracking Properly on Robot
We found the problem! In tracking.h we redefined PAN_ROTATION_SIGN_DEFAULT and TILT_ROTATION_SIGN_DEFAULT to the opposite values. Now it is tracking perfectly!
|
Re: CMU Cam not Tracking Properly on Robot
Quote:
OBTW, that situation is covered in the Tracking.h file included in the code from Kevin Watson. It is well worth the time to walk through ALL of his code. He documents it very well. |
Re: CMU Cam not Tracking Properly on Robot
Another thing to note is if you are using the 'Bells & Whistles' version of Kevin's code that this parameter is also stored in EEPROM. What this means is if you change the #defines in the code, recompile, and download you will not actually see a change in the behavior. This is because the code is loading the last used values (previous defaults) from EEPROM. You have to use Kevin's menu system to modify the value or alternatively (since you changed the default values) reset the configuration to default.
-Terry |
Re: CMU Cam not Tracking Properly on Robot
Quote:
-Kevin |
Re: CMU Cam not Tracking Properly on Robot
Quote:
|
Re: CMU Cam not Tracking Properly on Robot
Quote:
-Kevin |
| All times are GMT -5. The time now is 04:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi