Hello,
Please help me understand the received data and determine the position of the line vector. My device uses the UART interface to communicate with pixy2. I am sending a getMainFeatures query for pixy: 0xc1ae, 0x30, 0x02, 0x00, 0x01.
Receives the answer as in the pictures below (according to the position of the lines in the picture):
According to the Line Tracking - Packet Reference:
For a more recent example, I understand it like this:
0xc1af - sync
0x31 - type of packet
0x08 - lenght of packet
0x9300 - sum of payloads bytes
the next data is a mystery…
Probably the data of x0, x1, y0, y1 - but I can’t calculate the vector’s position from this.
Can someone explain it to me? I need to calculate the position of the line vector from this data.
BR
Burg