![]() |
Re: Camera Code Update
Quote:
Diet Pepsi is the best soda ever! Jacob |
Re: Camera Code Update
Quote:
Also, what are your thoughts on adjusting the PWM Pan Center so that 127 causes pixel 80 to be on the center of the bot? Right now, when you square up the camera with our chassis, the actual field-of-view (which we found to be around 42* in the pan direction) is about 75% on the right side of our 'bot. (We have adjusted the Pan Target pixel so that when tracking the camera unit points straight at the target, but now I am thinking that this isn't really desirable. Who cares where it points, you want the mx values on the center of the image sensor, right?) Other than that, assuming merged the changes correctly into my copy of the code, it works just fine. Thanks in advance, Robinson Levin |
Re: Camera Code Update
Quote:
Jason PS: see you soon ;) |
Re: Camera Code Update
Quote:
Quote:
Is this better than changing the pan target pixel? Thanks in advance, Robinson [note] The value 36 should be replaced with whatever you are using for the pwm gain you are using, but 36 is the default with the new code. |
Re: Camera Code Update
Thanks for updating the camera code...
One thing that we added to tracking.c were two accessor functions for getting pan and tilt error. We tried using a combination of PWM error and these finer values to control our motors. I'm not sure it helps, but having the functions in tracking.c was convenient. We had to move the pan_error and tilt_error vaiables from local to file-global to make this work, and added function prototypes to tracking.h. If you don't want to make this change to your code, no worries, we can just tweak the new version... Thanks, Jim Greenhaw Team 1388 |
| All times are GMT -5. The time now is 00:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi