Forum Posts

Alessandro Tenti
Feb 25, 2022
In Software
Sorry again, just asking if someone can walk we through this error messages I got while verifying Opencat.ino Arduino: 1.8.12 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)" In file included from C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino:27:0: sketch\WriteInstinct/OpenCat.h:858:1: warning: narrowing conversion of '-9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] }; ^ sketch\WriteInstinct/OpenCat.h:858:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] sketch\WriteInstinct/OpenCat.h:858:1: warning: narrowing conversion of '-9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] sketch\WriteInstinct/OpenCat.h:858:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] sketch\WriteInstinct/OpenCat.h:858:1: warning: narrowing conversion of '9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] sketch\WriteInstinct/OpenCat.h:858:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] sketch\WriteInstinct/OpenCat.h:858:1: warning: narrowing conversion of '9.0e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] sketch\WriteInstinct/OpenCat.h:858:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing] In file included from C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino:30:0: sketch\src/mpu6050/MPU6050_6Axis_MotionApps20.h: In member function 'uint8_t MPU6050::dmpGetGravity(int16_t*, const uint8_t*)': sketch\src/mpu6050/MPU6050_6Axis_MotionApps20.h:524:65: warning: integer overflow in expression [-Woverflow] - (int32_t)qI[2] * qI[2] + (int32_t)qI[3] * qI[3]) / (2 * 16384); ~~^~~~~~~ C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino: At global scope: OpenCat:86:15: error: 'IR_RECIEVER' was not declared in this scope IRrecv irrecv(IR_RECIEVER); // create instance of 'irrecv' ^~~~~~~~~~~ C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino:86:15: note: suggested alternative: 'IR_RECEIVER' IRrecv irrecv(IR_RECIEVER); // create instance of 'irrecv' ^~~~~~~~~~~ IR_RECEIVER C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino: In function 'void getYPR()': OpenCat:252:11: error: 'printGyro' was not declared in this scope if (printGyro) ^~~~~~~~~ C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino:252:11: note: suggested alternative: 'printList' if (printGyro) ^~~~~~~~~ printList C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino: In function 'void loop()': OpenCat:514:14: error: 'T_PRINT_GYRO' was not declared in this scope case T_PRINT_GYRO: { ^~~~~~~~~~~~ C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino:514:14: note: suggested alternative: 'T_GYRO' case T_PRINT_GYRO: { ^~~~~~~~~~~~ T_GYRO OpenCat:518:14: error: 'T_VERBOSELY_PRINT_GYRO' was not declared in this scope case T_VERBOSELY_PRINT_GYRO: { ^~~~~~~~~~~~~~~~~~~~~~ OpenCat:519:13: error: 'printGyro' was not declared in this scope printGyro = !printGyro; ^~~~~~~~~ C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino:519:13: note: suggested alternative: 'printList' printGyro = !printGyro; ^~~~~~~~~ printList C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino:556:40: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] char* list = inBuffer.c_str(); ~~~~~~~~~~~~~~^~ C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino: At global scope: OpenCat:855:1: error: expected declaration before '}' token } ^ exit status 1 'IR_RECIEVER' was not declared in this scope This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
0
1
32
Alessandro Tenti
Feb 20, 2022
In Software
Hi everyone, I got this message when I try to upload Opencat.ino C:\Users\Ale\Documents\Arduino\OpenCat-main\OpenCat\OpenCat.ino:455:6: note: suggested alternative: 'init' input block ^~~~~ init OpenCat:857:1: error: expected '}' at end of input } ^ exit status 1 'input' was not declared in this scope
0
2
41
Alessandro Tenti
Feb 06, 2022
In Basic Assembly and Setup
Hi,serial monitor keep returning low battery but battery is fully charged. My board is custom made do i have to make some modification at the .ino to run opencat properly?
0
2
35
Alessandro Tenti
More actions