Display object recognition values as integers
2 months
I'm trying to configure the serial communications module to send object orientation as only an integer. I've seen that this is possible for blob tracking, but I am using object recognition and can't find any setting for integers. Right now it gives me three decimals of superfluous data. Is there a way to configure this?

STeven from United States  [1403 posts] 2 months
This will depend on how you have specified things in the serial module. Most likely the number is being transmitted as a 4 byte floating point number which is the most efficient way to send a decimal number. If you just want a single text integer you can try


but this could be 1 byte or 3 bytes (i.e. 5 degrees or 324 degrees). Note the 'i' between the \ and [.

Or you can try


which would send a 2 integer byte with the first byte being the higher value, i.e. byte * 256.



for more info.


 Reply  New Post   Forum Index