Post by tegwyntwmffat on Jun 2, 2018 10:33:43 GMT
The WEEDINATOR project is still progressing nicely and Charmed labs have just released the Pixy2 object recognition camera. I'm singing the praises of the TC275 as loudly as possible everywhere I go, but it would be really great if it could get data from the Pixy2! I would not have bothered asking for the Pixy predecessor, but this version seems an order of magnitude better, with really good vector line recognition which seems to work ok in more severe lighting conditions.
The Pixy2 is a bit pricy at £55, but a lot cheaper and easier than something like the Jetson TX2. Takes about 5 minutes to get going with vectors.
Any chance of getting the TC275 compatible with this device? Here's my error message below:
Thanks!
The Pixy2 is a bit pricy at £55, but a lot cheaper and easier than something like the Jetson TX2. Takes about 5 minutes to get going with vectors.
Any chance of getting the TC275 compatible with this device? Here's my error message below:
Thanks!
Arduino: 1.6.12 (Windows 10), Board: "ShieldBuddyTC275"
In file included from C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/Pixy2.h:20:0,
from F:\Pixy_2_01\Pixy_2_01.ino:16:
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h: In instantiation of 'int8_t TPixy2<LinkType>::changeProg(const char*) [with LinkType = Link2SPI; int8_t = signed char]':
F:\Pixy_2_01\Pixy_2_01.ino:26:25: required from here
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h:278:50: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'char*' [-fpermissive]
strncpy(m_bufPayload, prog, PIXY_MAX_PROGNAME);
^
In file included from c:\hightec\toolchains\tricore\v4.9.1.0-infineon-1.1\tricore\include\stdlib.h:11:0,
from C:\Program Files (x86)\Arduino\hardware\aurduino/aurix/cores/aurduino/Arduino.h:14,
from C:\Program Files (x86)\Arduino\hardware\aurduino/aurix/variants/tc275/Variant.h:26,
from <command-line>:0:
c:\hightec\toolchains\tricore\v4.9.1.0-infineon-1.1\tricore\include\string.h:37:8: note: initializing argument 1 of 'char* strncpy(char*, const char*, size_t)'
char *_EXFUN(strncpy,(char *, const char *, size_t));
^
In file included from C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/Pixy2.h:20:0,
from F:\Pixy_2_01\Pixy_2_01.ino:16:
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h:284:11: warning: cast from 'uint8_t* {aka unsigned char*}' to 'uint32_t* {aka long unsigned int*}' increases required alignment of target type [-Wcast-align]
res = *(uint32_t *)m_buf;
^
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h: In instantiation of 'int8_t TPixy2<LinkType>::setLamp(uint8_t, uint8_t) [with LinkType = Link2SPI; int8_t = signed char; uint8_t = unsigned char]':
F:\Pixy_2_01\Pixy_2_01.ino:27:20: required from here
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h:407:9: warning: cast from 'uint8_t* {aka unsigned char*}' to 'uint32_t* {aka long unsigned int*}' increases required alignment of target type [-Wcast-align]
res = *(uint32_t *)m_buf;
^
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h: In instantiation of 'int8_t TPixy2<LinkType>::getVersion() [with LinkType = Link2SPI; int8_t = signed char]':
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h:149:20: required from 'int8_t TPixy2<LinkType>::init(uint32_t) [with LinkType = Link2SPI; int8_t = signed char; uint32_t = long unsigned int]'
F:\Pixy_2_01\Pixy_2_01.ino:25:13: required from here
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h:307:15: warning: cast from 'uint8_t* {aka unsigned char*}' to 'Version*' increases required alignment of target type [-Wcast-align]
version = (Version *)m_buf;
^
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h: In instantiation of 'int8_t TPixy2<LinkType>::getResolution() [with LinkType = Link2SPI; int8_t = signed char]':
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h:151:21: required from 'int8_t TPixy2<LinkType>::init(uint32_t) [with LinkType = Link2SPI; int8_t = signed char; uint32_t = long unsigned int]'
F:\Pixy_2_01\Pixy_2_01.ino:25:13: required from here
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h:328:18: warning: cast from 'uint8_t* {aka unsigned char*}' to 'uint16_t* {aka short unsigned int*}' increases required alignment of target type [-Wcast-align]
frameWidth = *(uint16_t *)m_buf;
^
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h:329:19: warning: cast from 'uint8_t* {aka unsigned char*}' to 'uint16_t* {aka short unsigned int*}' increases required alignment of target type [-Wcast-align]
frameHeight = *(uint16_t *)(m_buf+sizeof(uint16_t));
^
In file included from C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/TPixy2.h:57:0,
from C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/Pixy2.h:20,
from F:\Pixy_2_01\Pixy_2_01.ino:16:
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/Pixy2Line.h: In instantiation of 'int8_t Pixy2Line<LinkType>::getFeatures(uint8_t, uint8_t, bool) [with LinkType = Link2SPI; int8_t = signed char; uint8_t = unsigned char]':
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/Pixy2Line.h:128:61: required from 'int8_t Pixy2Line<LinkType>::getAllFeatures(uint8_t, bool) [with LinkType = Link2SPI; int8_t = signed char; uint8_t = unsigned char]'
F:\Pixy_2_01\Pixy_2_01.ino:32:28: required from here
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/Pixy2Line.h:187:21: warning: cast from 'uint8_t* {aka unsigned char*}' to 'Vector*' increases required alignment of target type [-Wcast-align]
vectors = (Vector *)fdata;
^
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/Pixy2Line.h:193:27: warning: cast from 'uint8_t* {aka unsigned char*}' to 'Intersection*' increases required alignment of target type [-Wcast-align]
intersections = (Intersection *)fdata;
^
C:\Users\Patrick\Documents\Arduino\libraries\Pixy2/Pixy2Line.h:199:22: warning: cast from 'uint8_t* {aka unsigned char*}' to 'Barcode*' increases required alignment of target type [-Wcast-align]
barcodes = (Barcode *)fdata;
^
exit status 1
Error compiling for board ShieldBuddyTC275.
Invalid library found in C:\Users\Patrick\Documents\Arduino\libraries\Adafruit_ILI9341: C:\Users\Patrick\Documents\Arduino\libraries\Adafruit_ILI9341
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.