celeron533 发表于 2014-2-4 18:25
MPU6050库文件...
换了个库文件,又有问题了。。
Arduino:1.5.5-r2 (Windows 7), 板:"Arduino Uno"
Using library Wire in folder: D:\Arduino\hardware\arduino\avr\libraries\Wire (pre-1.5)
Using library MPU5060 in folder: D:\Arduino\libraries\MPU5060 (pre-1.5)
Using library SD in folder: D:\Arduino\libraries\SD
D:\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=155 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -ID:\Arduino\hardware\arduino\avr\cores\arduino -ID:\Arduino\hardware\arduino\avr\variants\standard -ID:\Arduino\hardware\arduino\avr\libraries\Wire -ID:\Arduino\libraries\MPU5060 -ID:\Arduino\libraries\SD\src C:\Users\Jesse\AppData\Local\Temp\XXXXXXXXXXXXXXXXXXXXXXXXXXXp\sketch_feb04a.cpp -o C:\Users\Jesse\AppData\Local\Temp\XXXXXXXXXXXXXXXXXXXXXXXXXXXp\sketch_feb04a.cpp.o
In file included from sketch_XXXXXXXXXo:5:
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:133: error: conflicting declaration 'const unsigned char dmpMemory [1929]'
D:\Arduino\libraries\MPU5060/MPU6050.h:792: error: 'dmpMemory' has a previous declaration as 'prog_uchar dmpMemory [1929]'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:315: error: conflicting declaration 'const unsigned char dmpUpdates [47]'
D:\Arduino\libraries\MPU5060/MPU6050.h:931: error: 'dmpUpdates' has a previous declaration as 'uint8_t dmpUpdates [29][9]'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:325: error: no 'uint8_t MPU6050::dmpInitialize()' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:550: error: no 'bool MPU6050::dmpPacketAvailable()' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:577: error: no 'uint8_t MPU6050::dmpGetAccel(int32_t*, const uint8_t*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:585: error: no 'uint8_t MPU6050::dmpGetAccel(int16_t*, const uint8_t*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:593: error: no 'uint8_t MPU6050::dmpGetAccel(VectorInt16*, const uint8_t*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:601: error: no 'uint8_t MPU6050::dmpGetQuaternion(int32_t*, const uint8_t*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:610: error: no 'uint8_t MPU6050::dmpGetQuaternion(int16_t*, const uint8_t*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:619: error: no 'uint8_t MPU6050::dmpGetQuaternion(Quaternion*, const uint8_t*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:634: error: no 'uint8_t MPU6050::dmpGetGyro(int32_t*, const uint8_t*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:642: error: no 'uint8_t MPU6050::dmpGetGyro(int16_t*, const uint8_t*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:652: error: no 'uint8_t MPU6050::dmpGetLinearAccel(VectorInt16*, VectorInt16*, VectorFloat*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:660: error: no 'uint8_t MPU6050::dmpGetLinearAccelInWorld(VectorInt16*, VectorInt16*, Quaternion*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:672: error: no 'uint8_t MPU6050::dmpGetGravity(VectorFloat*, Quaternion*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:683: error: no 'uint8_t MPU6050::dmpGetEuler(float*, Quaternion*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:689: error: no 'uint8_t MPU6050::dmpGetYawPitchRoll(float*, Quaternion*, VectorFloat*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:702: error: no 'uint8_t MPU6050::dmpProcessFIFOPacket(const unsigned char*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:712: error: no 'uint8_t MPU6050::dmpReadAndProcessFIFOPacket(uint8_t, uint8_t*)' member function declared in class 'MPU6050'
D:\Arduino\libraries\MPU5060/MPU6050_6Axis_MotionApps20.h:737: error: no 'uint16_t MPU6050::dmpGetFIFOPacketSize()' member function declared in class 'MPU6050'
sketch_XXXXXXXXXo: In function 'float Get_Current_Rocket_Inclination(int)':
sketch_XXXXXXXXXo:128: error: 'class MPU6050' has no member named 'getIntStatus'
sketch_XXXXXXXXXo:133: error: 'class MPU6050' has no member named 'getFIFOBytes'
sketch_XXXXXXXXXo:136: error: 'class MPU6050' has no member named 'dmpGetQuaternion'
sketch_XXXXXXXXXo:137: error: 'class MPU6050' has no member named 'dmpGetGravity'
sketch_XXXXXXXXXo:138: error: 'class MPU6050' has no member named 'dmpGetYawPitchRoll'
sketch_XXXXXXXXXo: In function 'void Init_MPU_6050()':
sketch_XXXXXXXXXo:153: error: 'class MPU6050' has no member named 'dmpInitialize'
sketch_XXXXXXXXXo:155: error: 'class MPU6050' has no member named 'dmpGetFIFOPacketSize'