CRAC Team / Pixy2-HA
Embed: (wiki syntax)

« Back to documentation index

T_pixy2Vector Struct Reference

T_pixy2Vector Struct Reference

Structured type that match pixy2 vector definition - used in Line frame (type 48/49) - message payload. More...

#include <pixy2.h>


Detailed Description

Structured type that match pixy2 vector definition - used in Line frame (type 48/49) - message payload.

Parameters:
pixX0(Byte) : 8 bits X (horizontal, relative to the left of image) position of the tail of the vector (number between 0 and 78)
pixY0(Byte) : 8 bits Y (vertical, relative to the top of image) position of the tail of the vector (number between 0 and 51)
pixX1(Byte) : 8 bits X (horizontal, relative to the left of image) position of the head of the vector (number between 0 and 78)
pixY1(Byte) : 8 bits Y (vertical, relative to the top of image) position of the head of the vector (number between 0 and 51)
pixIndex(Byte) : 8 bits tracking identification of the vector (set by pixy2 to ease a vector identification in case of multiple vector in a line following program)
pixFlags(Byte) : 8 bits flag containing possible usefull informations (see notes)
Note:
This structure is a feature of Line API, packed as a feature in a Line Frame, documented here : https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:protocol_reference
More info can be found here : https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:line_api
or here : https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:line_tracking

Definition at line 278 of file pixy2.h.