Request: "Paste signatures from clipboard" for Vision Utility

The Vision Utility has a tiny little button that will **Copy signatures to clipboard".

It generates code like this:

vision::signature SIG_1 (1, -279, -87, -182, 469, 827, 648, 2.500, 0);
vision::signature SIG_2 (2, 0, 0, 0, 0, 0, 0, 2.500, 0);
vision::signature SIG_3 (3, 0, 0, 0, 0, 0, 0, 2.500, 0);
vision::signature SIG_4 (4, 0, 0, 0, 0, 0, 0, 2.500, 0);
vision::signature SIG_5 (5, 0, 0, 0, 0, 0, 0, 2.500, 0);
vision::signature SIG_6 (6, 0, 0, 0, 0, 0, 0, 2.500, 0);
vision::signature SIG_7 (7, 0, 0, 0, 0, 0, 0, 2.500, 0);
vex::vision vision1 ( vex::PORT1, 50, SIG_1, SIG_2, SIG_3, SIG_4, SIG_5, SIG_6, SIG_7 );

Any chance you could implement the complimentary action of: Paste signatures from clipboard

Some of the programming tasks my students must accomplish involve navigating a classroom maze with obstacles. I would like to provide students with reliable color signature setting values so their success is based on the algorithm they program and not the extremely variable color signature settings.

In Blocks, there is no way to adjust/set color signature values and this would provide that.

Thanks!

This is always tricky as any mis-formatting of the text causes the data to be hard to parse. We tried to do this with only partial success in VEXcode V5 Pro.

One way to do this would be to provide an example program to the students with signatures already set as a starting point.

6 Likes

Yeah, parsing user input can be fraught with problems. I was hoping it would minimally be able to paste signatures created by the copy button (with any malformations simply being rejected).

To provide a scaffolded/differentiated learning experience, I want students to do their own signatures, and when necessary provide them.

Without a paste function, there is no way to revisit/save/revert past signatures (at least not in Blocks). Only having them pre-set from the beginning of a project is a limitation.

So, I created a very rudimentary solution for myself to use with students, and wanted to offer it to others:

This allows you to manually adjust the vision sensor properties within a V5BLOCKS file.

If students are struggling to set a good color you can use this to modify the signature with known good values.

3 Likes

@jpearman Can you share some insight on the “rgb” parameter in the v5blocks file? The vex::vision::signature does not use it to instantiate one. Is it in the file just for convenience?

[quote=“dczechowski, post:4, topic:112582”]
This allows you to manually adjust the vision sensor properties within a V5BLOCKS file.[/quote]
This is round-about solution until VEX allows blocks to set the color values.

Here are the VEX default color values using this tool:




This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.