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…
http://s18.postimage.org/8xvquknqx/Autonomous_Try.jpg](http://postimage.org/)
image host
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.
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… ?
http://s7.postimage.org/77tuovmff/Autonomous_Try_2.jpg](http://postimage.org/)
gif image hosting
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.
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.