We’re working with the Axis Camera to track the position of the target with LabVIEW on the autonomous and tele-op (by a button pressing) modes.
Besides, we want to aim the target at the center of the vision, because the target can be found in the border, or anywhere.
It looks like nobody is having difficult with this tracking and centralization. But we aren’t find a solution to this problem.
Our mentor has created a formula to move the pan/tilt of the camera, which consists in make the servo increase its angle and calculate the difference between the the new and old locations of target on camera vision.
Anyone could help me with suggestions or ideas? Any response will be appreciated, thanks!
I’m not sure what the question is.
The sample code this year doesn’t use the servo gimbal, but since the example from last year does, you could pretty easily combine the two.
Greg McKaskle
Yeah, we’ve tried it, understood the example and fit it in our program.
We realize that the gimbal can be made in a easy way, not appealing to sine and cosine formulas, or empirical 5 and -7 numbers like the last year’s programming.
Understanding and reworking is always a great way. Good luck.
Greg McKaskle
hey new team this year could you send us the pan and tilt code from last year? We are completley stumped on how to get this to work!:mad:
The gimbal code is in a vision example. The path is something like examples/FRC/Vision/Two Color Servo Demo.vi.
Greg McKaskle