here is the errors :
In file included from C:\Users\mlcar\Documents\Arduino\Nybble\WriteInstinct\WriteInstinct.ino:31:0:
C:\Users\mlcar\AppData\Local\Temp\arduino_build_491074\sketch\OpenCat.h:604:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
};
^
C:\Users\mlcar\AppData\Local\Temp\arduino_build_491074\sketch\OpenCat.h:604:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\mlcar\AppData\Local\Temp\arduino_build_491074\sketch\OpenCat.h:604:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\mlcar\AppData\Local\Temp\arduino_build_491074\sketch\OpenCat.h:604:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\mlcar\AppData\Local\Temp\arduino_build_491074\sketch\OpenCat.h:604:1: warning: narrowing conversion of '4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\mlcar\AppData\Local\Temp\arduino_build_491074\sketch\OpenCat.h:604:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\mlcar\AppData\Local\Temp\arduino_build_491074\sketch\OpenCat.h:604:1: warning: narrowing conversion of '4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\mlcar\AppData\Local\Temp\arduino_build_491074\sketch\OpenCat.h:604:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]
C:\Users\mlcar\Documents\Arduino\Nybble\WriteInstinct\WriteInstinct.ino: In function 'void setup()':
C:\Users\mlcar\Documents\Arduino\Nybble\WriteInstinct\WriteInstinct.ino:231:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
motion.loadBySkillName("rest");
^
C:\Users\mlcar\Documents\Arduino\Nybble\WriteInstinct\WriteInstinct.ino: In function 'void loop()':
C:\Users\mlcar\Documents\Arduino\Nybble\WriteInstinct\WriteInstinct.ino:327:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
motion.loadBySkillName("rest");
^
C:\Users\mlcar\Documents\Arduino\Nybble\WriteInstinct\WriteInstinct.ino:360:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
motion.loadBySkillName("calib");
****
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:3215:42: warning: default argument given for parameter 1 of 'void MPU6050::CalibrateGyro(int)' [-fpermissive]
void MPU6050::CalibrateGyro(int Loops = 6) {
^
In file included from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:38:0:
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.h:824:8: note: previous specification in 'void MPU6050::CalibrateGyro(int)' here
void CalibrateGyro(int Loops = 6); // Fine tune after setting offsets with less Loops.
^
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:3231:43: warning: default argument given for parameter 1 of 'void MPU6050::CalibrateAccel(int)' [-fpermissive]
void MPU6050::CalibrateAccel(int Loops = 6) {
^
In file included from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:38:0:
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.h:825:8: note: previous specification in 'void MPU6050::CalibrateAccel(int)' here
void CalibrateAccel(int Loops = 6); // Fine tune after setting offsets with less Loops.
^
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp: In member function 'void MPU6050::PID(uint8_t, uint8_t, float, float, uint8_t)':
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:3248:63: warning: invalid conversion from 'int16_t* {aka int*}' to 'uint16_t* {aka unsigned int*}' [-fpermissive]
I2Cdev::readWords(devAddr, SaveAddress + (i * 2), 1, &Reading); // reads 1 or more 16 bit integers (Word)
^
In file included from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.h:40:0,
from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:38:
C:\Users\mlcar\Documents\Arduino\libraries\I2Cdev/I2Cdev.h:115:23: note: initializing argument 4 of 'static int8_t I2Cdev::readWords(uint8_t, uint8_t, uint8_t, uint16_t*, uint16_t)'
static int8_t readWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data, uint16_t timeout=I2Cdev::readTimeout);
^
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:3255:64: warning: invalid conversion from 'int16_t* {aka int*}' to 'uint16_t* {aka unsigned int*}' [-fpermissive]
I2Cdev::readWords(devAddr, ReadAddress + (i * 2), 1, &Reading); // reads 1 or more 16 bit integers (Word)
^
In file included from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.h:40:0,
from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:38:
C:\Users\mlcar\Documents\Arduino\libraries\I2Cdev/I2Cdev.h:115:23: note: initializing argument 4 of 'static int8_t I2Cdev::readWords(uint8_t, uint8_t, uint8_t, uint16_t*, uint16_t)'
static int8_t readWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data, uint16_t timeout=I2Cdev::readTimeout);
^
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:3263:67: warning: invalid conversion from 'int16_t* {aka int*}' to 'uint16_t* {aka unsigned int*}' [-fpermissive]
I2Cdev::writeWords(devAddr, SaveAddress + (i * 2), 1, &Offset);
^
In file included from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.h:40:0,
from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:38:
C:\Users\mlcar\Documents\Arduino\libraries\I2Cdev/I2Cdev.h:124:21: note: initializing argument 4 of 'static bool I2Cdev::writeWords(uint8_t, uint8_t, uint8_t, uint16_t*)'
static bool writeWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data);
^
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:3274:65: warning: invalid conversion from 'int16_t* {aka int*}' to 'uint16_t* {aka unsigned int*}' [-fpermissive]
I2Cdev::writeWords(devAddr, SaveAddress + (i * 2), 1, &Offset );
^
In file included from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.h:40:0,
from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:38:
C:\Users\mlcar\Documents\Arduino\libraries\I2Cdev/I2Cdev.h:124:21: note: initializing argument 4 of 'static bool I2Cdev::writeWords(uint8_t, uint8_t, uint8_t, uint16_t*)'
static bool writeWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data);
^
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp: In member function 'void MPU6050::PrintActiveOffsets()':
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:3285:42: warning: invalid conversion from 'int16_t* {aka int*}' to 'uint16_t* {aka unsigned int*}' [-fpermissive]
I2Cdev::readWords(devAddr, 0x06, 3, Data);
^
In file included from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.h:40:0,
from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:38:
C:\Users\mlcar\Documents\Arduino\libraries\I2Cdev/I2Cdev.h:115:23: note: initializing argument 4 of 'static int8_t I2Cdev::readWords(uint8_t, uint8_t, uint8_t, uint16_t*, uint16_t)'
static int8_t readWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data, uint16_t timeout=I2Cdev::readTimeout);
^
C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:3290:42: warning: invalid conversion from 'int16_t* {aka int*}' to 'uint16_t* {aka unsigned int*}' [-fpermissive]
I2Cdev::readWords(devAddr, 0x13, 3, Data);
^
In file included from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.h:40:0,
from C:\Users\mlcar\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:38:
C:\Users\mlcar\Documents\Arduino\libraries\I2Cdev/I2Cdev.h:115:23: note: initializing argument 4 of 'static int8_t I2Cdev::readWords(uint8_t, uint8_t, uint8_t, uint16_t*, uint16_t)'
static int8_t readWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data, uint16_t timeout=I2Cdev::readTimeout);
How i can correct them ?
thanks for your answers
These are mostly type conversion warnings. The major reason was to fully utilize the limited memory on board. If the program works, no need to correct them.