Hello world! (Scott, this is probably a question for you)
So I encountered this issue/inconsistency a while back (a few month ago). Im now starting to rely more on color codes, and kind of starting to annoy me just a little
I made a color coded beacon using green and orange colors. I took a stripe of orange and sandwiched it between two greens (green,orange,green combo). I assigned a CC signature 5 to green, and CC signature 3 to orange. The color code block was recognized in my Pixymon with s=535. I ran hello_world example and indeed the print() command reported that a block with signature=535 was found. HOWEVER, if you actually use the API to get a color signature, like this
@
if(blokcs){
for(int j=0; j<blocks; j++){//cycle trough the blocks
signature=pixy.blocks[j].signature; //read color signature
Serial.println(signature); //should be 535 but its not
}
}
@
i get signature=349. So if I wanted to have a robot do stuff when it sees this beacon, I would have to look for blocks with signature 349 (and this number doesnt change if I reteach pixy or whatever)
The bottom line is that I can still work with color codes, but every time I would like to introduce a new color code combination, I have to figure out what the actual signature value is.
Is this a bug?
P.S. Im using latest version of Pixymon and arduino library.
Thanks!
Best,
Vadim