Log in

View Full Version : need help with autonomous!!!!!


billbo911
31-01-2009, 14:13
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!!!!!

Luke Pike
31-01-2009, 14:32
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.

billbo911
31-01-2009, 14:40
I am using the basic framework

Greg McKaskle
31-01-2009, 14:56
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

billbo911
31-01-2009, 15:22
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.

Team 2073 Kisses the ground Luke walks on!!!!

THANK YOU!!!