Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   VISION TRACKING W/ AUTONOMOUS (http://www.chiefdelphi.com/forums/showthread.php?t=101675)

dcarswell 31-01-2012 22:52

VISION TRACKING W/ AUTONOMOUS
 
Hello,

Our team is trying to work on our autonomous and in the end to get the robot cannon to shoot once the target is located. We have loaded the vision framework into the project, and now we are quite stuck..right now we just want to do the basics, which is to make the robot move a little once it has seen the target..can you please help us, and tell us what we are doing wrong so far..

Thank you very much..

image host

SuperS_5 01-02-2012 00:42

Re: VISION TRACKING W/ AUTONOMOUS
 
It appears that you are writing a constant /control to the global variable. I and that this code is in your teleop or autonomous vi. To get the targeting information from the vision loop, you must read from that variable.
I would also replace the array to cluster function with an index array function. You may also want to post your vision code.

dcarswell 01-02-2012 01:11

Re: VISION TRACKING W/ AUTONOMOUS
 
This is in our autonomous.vi, and we integrated the vision processing example directly into our project..like stated in the tutorial..don't know if that helps any ? Should any while loops be needed.. ?


gif image hosting

Thad House 01-02-2012 01:48

Re: VISION TRACKING W/ AUTONOMOUS
 
You need to change that global from a write to a read. Then reconnect it. You should then be able to use the data and it should work.

dcarswell 01-02-2012 01:49

Re: VISION TRACKING W/ AUTONOMOUS
 
Okay, thank you.

sometimestommy 06-02-2012 12:48

Re: VISION TRACKING W/ AUTONOMOUS
 
All you have to do is create a global variable that will export your tracking data (in array form) and send it to periodic tasks to move motors and what not.


All times are GMT -5. The time now is 11:40.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi