|
Arduino:1.6.13 (Windows 7), 开发板:"Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"
In file included from C:\Users\Administrator\Documents\Arduino\sketch_dec04a\sketch_dec04a.ino:4:0:
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:89:7: error: 'prog_uchar' does not name a type
const prog_uchar dmpMemory[MPU6050_DMP_CODE_SIZE] PROGMEM = {
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:229:7: error: 'prog_uchar' does not name a type
const prog_uchar dmpConfig[MPU6050_DMP_CONFIG_SIZE] PROGMEM = {
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:271:7: error: 'prog_uchar' does not name a type
const prog_uchar dmpUpdates[MPU6050_DMP_UPDATES_SIZE] PROGMEM = {
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h: In member function 'uint8_t MPU6050::dmpInitialize()':
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:342:30: error: 'dmpMemory' was not declared in this scope
if (writeProgMemoryBlock(dmpMemory, MPU6050_DMP_CODE_SIZE)) {
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:349:42: error: 'dmpConfig' was not declared in this scope
if (writeProgDMPConfigurationSet(dmpConfig, MPU6050_DMP_CONFIG_SIZE)) {
^
In file included from D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\sketch_dec04a.ino.cpp:1:
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:390:98: error: 'dmpUpdates' was not declared in this scope
for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:394:98: error: 'dmpUpdates' was not declared in this scope
for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:433:98: error: 'dmpUpdates' was not declared in this scope
for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:437:98: error: 'dmpUpdates' was not declared in this scope
for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:441:98: error: 'dmpUpdates' was not declared in this scope
for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:459:98: error: 'dmpUpdates' was not declared in this scope
for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:478:98: error: 'dmpUpdates' was not declared in this scope
for (j = 0; j < 4 || j < dmpUpdate[2] + 3; j++, pos++) dmpUpdate[j] = pgm_read_byte(&dmpUpdates[pos]);
^
In file included from C:\Users\Administrator\Documents\Arduino\sketch_dec04a\sketch_dec04a.ino:4:0:
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h: In member function 'uint8_t MPU6050::dmpGetAccel(int32_t*, const uint8_t*)':
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:536:31: warning: left shift count >= width of type
data[0] = ((packet[28] << 24) + (packet[29] << 16) + (packet[30] << 8) + packet[31]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:536:52: warning: left shift count >= width of type
data[0] = ((packet[28] << 24) + (packet[29] << 16) + (packet[30] << 8) + packet[31]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:537:31: warning: left shift count >= width of type
data[1] = ((packet[32] << 24) + (packet[33] << 16) + (packet[34] << 8) + packet[35]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:537:52: warning: left shift count >= width of type
data[1] = ((packet[32] << 24) + (packet[33] << 16) + (packet[34] << 8) + packet[35]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:538:31: warning: left shift count >= width of type
data[2] = ((packet[36] << 24) + (packet[37] << 16) + (packet[38] << 8) + packet[39]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:538:52: warning: left shift count >= width of type
data[2] = ((packet[36] << 24) + (packet[37] << 16) + (packet[38] << 8) + packet[39]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h: In member function 'uint8_t MPU6050::dmpGetQuaternion(int32_t*, const uint8_t*)':
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:560:30: warning: left shift count >= width of type
data[0] = ((packet[0] << 24) + (packet[1] << 16) + (packet[2] << 8) + packet[3]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:560:50: warning: left shift count >= width of type
data[0] = ((packet[0] << 24) + (packet[1] << 16) + (packet[2] << 8) + packet[3]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:561:30: warning: left shift count >= width of type
data[1] = ((packet[4] << 24) + (packet[5] << 16) + (packet[6] << 8) + packet[7]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:561:50: warning: left shift count >= width of type
data[1] = ((packet[4] << 24) + (packet[5] << 16) + (packet[6] << 8) + packet[7]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:562:30: warning: left shift count >= width of type
data[2] = ((packet[8] << 24) + (packet[9] << 16) + (packet[10] << 8) + packet[11]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:562:50: warning: left shift count >= width of type
data[2] = ((packet[8] << 24) + (packet[9] << 16) + (packet[10] << 8) + packet[11]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:563:31: warning: left shift count >= width of type
data[3] = ((packet[12] << 24) + (packet[13] << 16) + (packet[14] << 8) + packet[15]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:563:52: warning: left shift count >= width of type
data[3] = ((packet[12] << 24) + (packet[13] << 16) + (packet[14] << 8) + packet[15]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h: In member function 'uint8_t MPU6050::dmpGetGyro(int32_t*, const uint8_t*)':
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:593:31: warning: left shift count >= width of type
data[0] = ((packet[16] << 24) + (packet[17] << 16) + (packet[18] << 8) + packet[19]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:593:52: warning: left shift count >= width of type
data[0] = ((packet[16] << 24) + (packet[17] << 16) + (packet[18] << 8) + packet[19]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:594:31: warning: left shift count >= width of type
data[1] = ((packet[20] << 24) + (packet[21] << 16) + (packet[22] << 8) + packet[23]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:594:52: warning: left shift count >= width of type
data[1] = ((packet[20] << 24) + (packet[21] << 16) + (packet[22] << 8) + packet[23]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:595:31: warning: left shift count >= width of type
data[2] = ((packet[24] << 24) + (packet[25] << 16) + (packet[26] << 8) + packet[27]);
^
D:\Arduino1.6.13\arduino-1.6.13-windows\arduino-1.6.13\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:595:52: warning: left shift count >= width of type
data[2] = ((packet[24] << 24) + (packet[25] << 16) + (packet[26] << 8) + packet[27]);
^
楼主这是因为什么啊 库文件都添加了 我邮箱1501790247@qq.com,谢谢楼主 |
|