![]() |
need help with autonomous!!!!!
OK, heres the deal.
I'm trying to get the camera to track the target during Autonomous and once it locks on, the turret/shooter lines up with the camera so it can shoot the "balls" I have the camera tracking the target just fine, but the turret is constantly adjusting itself and not waiting for the camera to find the target. During Teleop, we are using the "Found" signal generated by the "FindTwoColor1" vi. We made it a local variable to tell the turret when the camera is locked on. This works perfectly in Teleop. What we can't seem to do is replicate this in Autonomous. I tried to use the same signal as a global variable but doesn't work and when we replace the local "Found" signal in Teleop to a Global it stops working too. Any help would be greatly appreciated! Thanks in advance!!!!! |
Re: need help with autonomous!!!!!
What framework are you using?
If you are using the advanced framework, you'd probably want to update the turret in the Vision Processing vi. That way, it wouldn't matter if you where in Teleop or Autonomous, it would work the same. |
Re: need help with autonomous!!!!!
I am using the basic framework
|
Re: need help with autonomous!!!!!
Is the FindColor call located in the vision loop or in the teleop?
If it is in the vision loop, or otherwise running independent of the auto/tele mode, you should be able to use a global variable to store the results of the call, and you should be able to read the global in both the teleop enabled switch and in the autonomous independent subVI. This sounds quite a bit like what you've described, but it must be different as this will definitely work. If you don't find it soon, post some code. Greg McKaskle |
Re: need help with autonomous!!!!!
Quote:
THANK YOU!!! |
| All times are GMT -5. The time now is 08:17. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi