Our team wishes to use an Axis M1011 camera for targeting on your shooter. We were able to make it work for the example code, but when we try move the code into our project for this year we get a whole bunch of errors, as of now we’ve just been copy and pasting the code. Not sure exactly how to integrate this and any help would be appreciated.
I would suggest undoing anything you have done so far, as following the steps below may conflict with earlier attempts.
- Create a copy of the “Rectangular Target - 2013” folder that can be found in your LabVIEW program files (let me know if you need help finding it).
- Move this copied version of the folder into your project folder
- Open up your project
- Right click on Vision Processing.vi and click “replace,” then select the Vision Processing VI in the “Rectangular Target - 2013” folder that you just copied.
- Follow the prompts. You’ll be told that there are conflicts. For all of them, select the file that was in your original project - not the one that is in the “Rectangular Target” folder.
- The final prompt will ask again if you want to use the new Vision Processing VI instead of your original one. Confirm that you want to use the one in the “Rectangular Target - 2013” folder.
Once you save the project, go into the new Vision Processing VI and search for the broken wires. You will have to create a new global variable to replace the one that you told it not to reference anymore.
We got it thanks!
it took a long time and trying different things but we eventually got it i think. We just got the camera to feed the image into the vision proccessing vi but haven’t tested it on a target yet but it should work i think.
Thanks for the help!
No problem, glad it worked out. This may be a useful resource for you to read and understand regarding target tracking:
http://wpilib.screenstepslive.com/s/3120/m/8731/l/90361-identifying-the-targets