I read the document and did not elaborate on how to set up VISION.
I set the ball as the first signature, but I don’t know where to find the parameters generated by it.
How do I get the parameters in the following picture?
The parameters in the picture are input by myself.
This is correct information for VCS, but PROS does things a bit differently.
The Vision Sensor saves all of the signatures that you configure in the Vision Utility Application on the Vision Sensor itself, so there is no need to set the signatures in your PROS program.
That being said, we understand that it can often be easier to configure signatures with their parameters in the code. The next set of changes on our roadmap for release will add the ability to get and set signatures programmatically like you are trying to do here.
After a little digging I found that the vision signatures that you define in the VCS Vision utility can be seen if you unpack the .tar file that VCS generates when you save the project. That .tar file has a .JSON file in it that contains a JSON object with the signature definitions.
I was able to create a vision signature object definition and assign all the values to the fields, but I still can’t seem to get the camera to function with PROS.
Can anyone tell me what I might be doing wrong to get no feedback at all from my call to the distanceToBiggestFlagInches function we defined.
Function line 89.
I try to read the value in opmode through a print statement to the LCD but I don’t ever see any value printed…not even a 0. I’ve tried using this code with signature definitions in the code, and signature definitions supposedly defined in the camera. Neither have shown any results.
pros::lcd::print(6, "Distance to flag INCHES: ", distanceToBiggestFlagInches());
I’m not certain our project is updated to the latest PROS kernel. I think I saw 3.1.3 last night, I’ll try updating tonight and see if anything works then.