Forum Posts

Adam B
Oct 16, 2021
In Software
I have run into issues in the board configuration step. Have followed the instructions in the docs but when I verify the code this is the output I get which looks to be issues on the code or board. I am not familiar with the Ardruino IDE so looing for some trouble shooting help. In file included from C:\Users\Adam\Downloads\OpenCat-main\OpenCat\OpenCat.ino:31:0: C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h: In member function 'void Motion::loadDataFromI2cEeprom(unsigned int&)': C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:660:51: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: Wire.requestFrom(DEVICE_ADDRESS, skillHeader); ^ In file included from C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:86:0, from C:\Users\Adam\Downloads\OpenCat-main\OpenCat\OpenCat.ino:31: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:68:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int) uint8_t requestFrom(int, int); ^~~~~~~~~~~ C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\src/Wire.h:65:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t) uint8_t requestFrom(uint8_t, uint8_t); ^~~~~~~~~~~ In file included from C:\Users\Adam\Downloads\OpenCat-main\OpenCat\OpenCat.ino:31:0: C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h: At global scope: C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] }; ^ C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '2.25e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '2.25e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-2.25e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:854:1: warning: narrowing conversion of '-2.25e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h: In function 'int SoundLightSensorPattern(char*)': C:\Users\Adam\Downloads\OpenCat-main\OpenCat\WriteInstinct\OpenCat.h:1102:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] skillByName("rest", 1, 1, 1); ^ C:\Users\Adam\Downloads\OpenCat-main\OpenCat\OpenCat.ino: In function 'void loop()': C:\Users\Adam\Downloads\OpenCat-main\OpenCat\OpenCat.ino:560:40: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] char* list = inBuffer.c_str(); ~~~~~~~~~~~~~~^~ C:\Users\Adam\Downloads\OpenCat-main\OpenCat\OpenCat.ino:633:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] motion.loadBySkillName("calib"); ^ C:\Users\Adam\Downloads\OpenCat-main\OpenCat\OpenCat.ino:771:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] skillByName("balance", 1, 2, false); ^ Sketch uses 29460 bytes (91%) of program storage space. Maximum is 32256 bytes. Global variables use 1218 bytes (59%) of dynamic memory, leaving 830 bytes for local variables. Maximum is 2048 bytes.
0
2
53
Adam B
More actions