This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:v2:video-packets [2018/09/28 22:51] jfrench created |
wiki:v2:video-packets [2018/10/10 19:39] pixycam [getRGB(x,y,r,g,b,saturate)] |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Video - Packet Reference ===== | ===== Video - Packet Reference ===== | ||
+ | Check out the [[wiki:v2:video_api|Video API]] for more details. | ||
==== getRGB(x,y,r,g,b,saturate) ==== | ==== getRGB(x,y,r,g,b,saturate) ==== | ||
- | ^Bit ^Description ^Value ^ | + | === Request: === |
- | |h0 |Length of packet |5 | | + | ^Bit ^Description ^Value(s) ^ |
- | |h1 |Type of packet |0x70 | | + | |0 - 1 |16-bit sync | 174, 193 (0xc1ae) | |
- | |1 |?? |x | | + | |2 |Type of packet |112 | |
- | |2 |?? |x | | + | |3 |Length of payload |5 | |
+ | |4 - 5 |16-bit x value |0 - 315 | | ||
+ | |6 - 7 |16-bit y value |0 - 207 | | ||
+ | |8 |Saturate flag | 0=don't saturate, 1=saturate| | ||
=== Response: === | === Response: === | ||
- | ^Bit ^Description ^Value ^ | + | ^Byte ^Description ^Value(s) ^ |
- | | | | | | + | |0 - 1 |16-bit sync | 175, 193 (0xc1af) | |
- | | | | | | + | |2 |Type of packet |1| |
+ | |3 |Length of payload | 4 | | ||
+ | |4 - 5 |16-bit checksum | sum of payload bytes | | ||
+ | | 6 |blue value | (varies) | | ||
+ | | 7 |green value | (varies | | ||
+ | | 8 |red value | (varies) | |