|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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!!!!! |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
Re: need help with autonomous!!!!!
I am using the basic framework
|
|
#4
|
|||
|
|||
|
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 |
|
#5
|
||||
|
||||
|
Re: need help with autonomous!!!!!
Quote:
THANK YOU!!! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with autonomous | MorbidAngel | General Forum | 2 | 11-12-2008 16:35 |
| we need help with PWM problem in autonomous | steve d | Programming | 7 | 03-02-2008 12:46 |
| Simulating autonomous mode - i need help!! :( | itay_ms | Programming | 5 | 21-01-2007 11:28 |
| need help with autonomous | caderader | Programming | 3 | 14-02-2005 18:25 |
| New to C but not to basic, need help on autonomous | cdennisxlx2 | Programming | 4 | 02-02-2005 03:38 |