top of page

Forum Comments

Bittle: issues with back servos
In Basic Assembly and Setup
Luis Rodriguez
Dec 07, 2021
In WriteInstinct.ino: I did do all those steps, Yes to "no line ending" and baud rate to 115200, and I did Y for all other prompts. Compile warnings: The compilation does show a few warnings including String constant to Char. Though I assume those are not the issue. I will upload some pictures of the connections and videos in the next post. In file included from C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:33:0: C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h: In member function 'void Motion::loadDataFromI2cEeprom(unsigned int&)': C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h:86:0, from C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:33: 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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:33:0: C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h: At global scope: C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\OpenCat.h: In function 'int SoundLightSensorPattern(char*)': C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\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\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino: In function 'void setup()': C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:150:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] motion.loadBySkillName("rest"); ^ C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino: In function 'void loop()': C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:262:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] skillByName("rest"); ^ C:\Users\Luis E. Rodriguez\Desktop\PETOI\OpenCat\OpenCat\WriteInstinct\WriteInstinct.ino:301:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] motion.loadBySkillName("calib"); ^ Sketch uses 26648 bytes (82%) of program storage space. Maximum is 32256 bytes. Global variables use 1378 bytes (67%) of dynamic memory, leaving 670 bytes for local variables. Maximum is 2048 bytes.
0
1

Luis Rodriguez

更多動作
bottom of page