Hello,
We go to test the Rectangular Target Processing code by running it locally, and can calibrate the camera and code to recognize the reflective goal marker, but when we stop the code, our calibrations are lost. How do we save the camera calibrations - and do we do it before or after we import the Rectangular Target Processing project to our cRIO project?
Also, to verify, what are the exact instructions for importing the Rectangular target processing code to our cRIO robot project? Do we go to File>Save As>Duplicate Hierarchy from the Rectangular Target Robot Main.vi or from the Vision Processing.vi?
Front panel controls have default values that will be used when you Build the project. When you have changed a control and you want the vi to remember the new value, you can set that value as the new default. Right-click on the control and choose Data Operations>Make Current Value Default from the popup menu. Do that for every control value you want to change.
Thanks so much! Another question - I’ve imported the Rectangular Vision VIs into our cRIO project, and they are accessible and I’ve set the defaults using the method you specified. I do have three questions, though.
What do I need to do now to use the information from the Rectangular Vision (aka distance, etc) elsewhere in my project?
Should it auto deploy to the cRIO when I run the code? Do I have to make any other changes in order for it to work on the cRIO?
How do I show the video output from the Rectangular vision on the driver station video screen? What do I have to do to implement this?
What do I need to do now to use the information from the Rectangular Vision (aka distance, etc) elsewhere in my project?
Should it auto deploy to the cRIO when I run the code? Do I have to make any other changes in order for it to work on the cRIO?
How do I show the video output from the Rectangular vision on the driver station video screen? What do I have to do to implement this?
I’d say that is very robot dependent. If you read the target info global, you can use it to either aim or drive the robot during autonomous or teleop.
Read through the directions, but basically, you go to the bottom of the project, to the Build Specifications, and you Build, then you Set to Run as Startup.
The dashboard can easily pull the image back to the computer independently. If you wish to annotate the image, use a bit of the code from the Rectangular example in your Dashboard Project.