- SF800 Solar Speicher Tutorial         
Ergebnis 1 bis 10 von 23

Thema: MPU6050 libs mit Kalman-Filter für Arduino und ohne Benutzung des Interrupt-Pins...?

Hybrid-Darstellung

Vorheriger Beitrag Vorheriger Beitrag   Nächster Beitrag Nächster Beitrag
  1. #1
    Erfahrener Benutzer Roboter Experte
    Registriert seit
    04.09.2011
    Ort
    Hessen
    Beiträge
    707
    Er bricht ja ab, weil er BUFFER_LENGTH nicht findet, das kommt aus der I2Cdev.h. Offenbar spricht da keines der #ifdef an.

  2. #2
    HaWe
    Gast
    könnte man sich dann evt. so behelfen:

    #ifndef BUFFER_LENGTH
    #define BUFFER_LENGTH 32
    #endif



    - - - Aktualisiert - - -

    update:
    nein, auch nicht ...
    Code:
    Arduino: 1.8.5 (Windows 7), Board: "Adafruit Feather M4 Express (SAMD51), Enabled"
    
    D:\arduino\arduino-builder -dump-prefs -logger=machine -hardware D:\arduino\hardware -hardware D:\arduino\portable\packages -tools D:\arduino\tools-builder -tools D:\arduino\hardware\tools\avr -tools D:\arduino\portable\packages -built-in-libraries D:\arduino\libraries -libraries D:\Arduino\portable\libraries -fqbn=adafruit:samd:adafruit_feather_m4:cache=on -ide-version=10805 -build-path C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.openocd.path=D:\arduino\portable\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=D:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=D:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.bossac.path=D:\arduino\portable\packages\arduino\tools\bossac\1.8.0-48-gb176eee -verbose D:\Akten\Programmierung\arduinoProgs\driver\MPU6050-h-Examples\MPU6050_DMP6_002\MPU6050_DMP6_002.ino
    D:\arduino\arduino-builder -compile -logger=machine -hardware D:\arduino\hardware -hardware D:\arduino\portable\packages -tools D:\arduino\tools-builder -tools D:\arduino\hardware\tools\avr -tools D:\arduino\portable\packages -built-in-libraries D:\arduino\libraries -libraries D:\Arduino\portable\libraries -fqbn=adafruit:samd:adafruit_feather_m4:cache=on -ide-version=10805 -build-path C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.openocd.path=D:\arduino\portable\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=D:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=D:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.bossac.path=D:\arduino\portable\packages\arduino\tools\bossac\1.8.0-48-gb176eee -verbose D:\Akten\Programmierung\arduinoProgs\driver\MPU6050-h-Examples\MPU6050_DMP6_002\MPU6050_DMP6_002.ino
    Using board 'adafruit_feather_m4' from platform in folder: D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3
    Using core 'arduino' from platform in folder: D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3
    WARNUNG: Kategorie '' in der Bibliothek XPT2046 ist ungültig und wird auf 'Uncategorized' festgelegt
    Detecting libraries used...
    "D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10805 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_SAMD  -D__SAMD51J19A__  -DADAFRUIT_FEATHER_M4_EXPRESS  -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8022 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Feather M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE "-ID:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-ID:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\variants\feather_m4" "C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\sketch\MPU6050_DMP6_002.ino.cpp" -o "nul"
    "D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10805 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_SAMD  -D__SAMD51J19A__  -DADAFRUIT_FEATHER_M4_EXPRESS  -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8022 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Feather M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE "-ID:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-ID:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\variants\feather_m4" "-ID:\Arduino\portable\libraries\I2Cdev" "C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\sketch\MPU6050_DMP6_002.ino.cpp" -o "nul"
    "D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10805 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_SAMD  -D__SAMD51J19A__  -DADAFRUIT_FEATHER_M4_EXPRESS  -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8022 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Feather M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE "-ID:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-ID:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\variants\feather_m4" "-ID:\Arduino\portable\libraries\I2Cdev" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\libraries\Wire" "C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\sketch\MPU6050_DMP6_002.ino.cpp" -o "nul"
    "D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10805 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_SAMD  -D__SAMD51J19A__  -DADAFRUIT_FEATHER_M4_EXPRESS  -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8022 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Feather M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE "-ID:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-ID:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\variants\feather_m4" "-ID:\Arduino\portable\libraries\I2Cdev" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\libraries\Wire" "-ID:\Arduino\portable\libraries\MPU6050" "C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\sketch\MPU6050_DMP6_002.ino.cpp" -o "nul"
    "D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10805 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_SAMD  -D__SAMD51J19A__  -DADAFRUIT_FEATHER_M4_EXPRESS  -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8022 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Feather M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE "-ID:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-ID:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\variants\feather_m4" "-ID:\Arduino\portable\libraries\I2Cdev" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\libraries\Wire" "-ID:\Arduino\portable\libraries\MPU6050" "D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp" -o "nul"
    "D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10805 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_SAMD  -D__SAMD51J19A__  -DADAFRUIT_FEATHER_M4_EXPRESS  -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8022 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Feather M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE "-ID:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-ID:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\variants\feather_m4" "-ID:\Arduino\portable\libraries\I2Cdev" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\libraries\Wire" "-ID:\Arduino\portable\libraries\MPU6050" "D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\libraries\Wire\Wire.cpp" -o "nul"
    "D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10805 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_SAMD  -D__SAMD51J19A__  -DADAFRUIT_FEATHER_M4_EXPRESS  -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8022 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Feather M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE "-ID:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-ID:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\variants\feather_m4" "-ID:\Arduino\portable\libraries\I2Cdev" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\libraries\Wire" "-ID:\Arduino\portable\libraries\MPU6050" "D:\Arduino\portable\libraries\MPU6050\MPU6050.cpp" -o "nul"
    Generating function prototypes...
    "D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10805 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_SAMD  -D__SAMD51J19A__  -DADAFRUIT_FEATHER_M4_EXPRESS  -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8022 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Feather M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE "-ID:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-ID:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\variants\feather_m4" "-ID:\Arduino\portable\libraries\I2Cdev" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\libraries\Wire" "-ID:\Arduino\portable\libraries\MPU6050" "C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\sketch\MPU6050_DMP6_002.ino.cpp" -o "C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\preproc\ctags_target_for_gcc_minus_e.cpp"
    "D:\arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\preproc\ctags_target_for_gcc_minus_e.cpp"
    Sketch wird kompiliert...
    "D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -Wall -Wextra -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=120000000L -DARDUINO=10805 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_SAMD  -D__SAMD51J19A__  -DADAFRUIT_FEATHER_M4_EXPRESS  -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8022 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Feather M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE "-ID:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-ID:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\variants\feather_m4" "-ID:\Arduino\portable\libraries\I2Cdev" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\libraries\Wire" "-ID:\Arduino\portable\libraries\MPU6050" "C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\sketch\MPU6050_DMP6_002.ino.cpp" -o "C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\sketch\MPU6050_DMP6_002.ino.cpp.o"
    In file included from D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino/Arduino.h:78:0,
    
                     from C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\sketch\MPU6050_DMP6_002.ino.cpp:1:
    
    D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino/HardwareSerial.h:71:18: warning: unused parameter 'baudrate' [-Wunused-parameter]
    
         virtual void begin(unsigned long baudrate, uint16_t config) {}
    
                      ^
    
    D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino/HardwareSerial.h:71:18: warning: unused parameter 'config' [-Wunused-parameter]
    
    In file included from D:\Akten\Programmierung\arduinoProgs\driver\MPU6050-h-Examples\MPU6050_DMP6_002\MPU6050_DMP6_002.ino:60:0:
    
    D:\Arduino\portable\libraries\MPU6050/MPU6050_6Axis_MotionApps20.h:743:9: warning: unused parameter 'dmpData' [-Wunused-parameter]
    
     uint8_t MPU6050::dmpProcessFIFOPacket(const unsigned char *dmpData) {
    
             ^
    
    Compiling libraries...
    Compiling library "I2Cdev"
    "D:\arduino\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -Wall -Wextra -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=120000000L -DARDUINO=10805 -DARDUINO_FEATHER_M4 -DARDUINO_ARCH_SAMD  -D__SAMD51J19A__  -DADAFRUIT_FEATHER_M4_EXPRESS  -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8022 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Feather M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DENABLE_CACHE "-ID:\arduino\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-ID:\arduino\portable\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\variants\feather_m4" "-ID:\Arduino\portable\libraries\I2Cdev" "-ID:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\libraries\Wire" "-ID:\Arduino\portable\libraries\MPU6050" "D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp" -o "C:\Users\LOKALE~1\AppData\Local\Temp\arduino_build_630878\libraries\I2Cdev\I2Cdev.cpp.o"
    D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp:64:14: warning: #warning Using current Arduino IDE with Wire library is functionally limiting. [-Wcpp]
    
                 #warning Using current Arduino IDE with Wire library is functionally limiting.
    
                  ^
    
    D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp:65:14: warning: #warning Arduino IDE v1.0.1+ with I2CDEV_BUILTIN_FASTWIRE implementation is recommended. [-Wcpp]
    
                 #warning Arduino IDE v1.0.1+ with I2CDEV_BUILTIN_FASTWIRE implementation is recommended.
    
                  ^
    
    D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp:66:14: warning: #warning This I2Cdev implementation does not support: [-Wcpp]
    
                 #warning This I2Cdev implementation does not support:
    
                  ^
    
    D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp:67:14: warning: #warning - Timeout detection (some Wire requests block forever) [-Wcpp]
    
                 #warning - Timeout detection (some Wire requests block forever)
    
                  ^
    
    In file included from D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino/Arduino.h:78:0,
    
                     from D:\Arduino\portable\libraries\I2Cdev\I2Cdev.h:77,
    
                     from D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp:46:
    
    D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino/HardwareSerial.h:71:18: warning: unused parameter 'baudrate' [-Wunused-parameter]
    
         virtual void begin(unsigned long baudrate, uint16_t config) {}
    
                      ^
    
    D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino/HardwareSerial.h:71:18: warning: unused parameter 'config' [-Wunused-parameter]
    
    In file included from D:\Arduino\portable\libraries\I2Cdev\I2Cdev.h:77:0,
    
                     from D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp:46:
    
    D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp: In static member function 'static int8_t I2Cdev::readBytes(uint8_t, uint8_t, uint8_t, uint8_t*, uint16_t)':
    
    D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp:276:62: error: 'BUFFER_LENGTH' was not declared in this scope
    
                 for (uint8_t k = 0; k < length; k += min(length, BUFFER_LENGTH)) {
    
                                                                  ^
    
    D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino/Arduino.h:100:24: note: in definition of macro 'min'
    
     #define min(a,b) ((a)<(b)?(a):(b))
    
                            ^
    
    D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp: In static member function 'static int8_t I2Cdev::readWords(uint8_t, uint8_t, uint8_t, uint16_t*, uint16_t)':
    
    D:\Arduino\portable\libraries\I2Cdev\I2Cdev.cpp:414:70: error: 'BUFFER_LENGTH' was not declared in this scope
    
                 for (uint8_t k = 0; k < length * 2; k += min(length * 2, BUFFER_LENGTH)) {
    
                                                                          ^
    
    D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\cores\arduino/Arduino.h:100:24: note: in definition of macro 'min'
    
     #define min(a,b) ((a)<(b)?(a):(b))
    
                            ^
    
    Bibliothek I2Cdev im Ordner: D:\Arduino\portable\libraries\I2Cdev (legacy) wird verwendet
    Bibliothek Wire in Version 1.0 im Ordner: D:\arduino\portable\packages\adafruit\hardware\samd\1.2.3\libraries\Wire  wird verwendet
    Bibliothek MPU6050 im Ordner: D:\Arduino\portable\libraries\MPU6050 (legacy) wird verwendet
    exit status 1
    Fehler beim Kompilieren für das Board Adafruit Feather M4 Express (SAMD51).

  3. #3
    Erfahrener Benutzer Roboter Experte
    Registriert seit
    04.09.2011
    Ort
    Hessen
    Beiträge
    707
    Nein, ich denke nicht. Die I2Cdev.cpp ist ja auch voller #ifdef.

    So was spezielles tut diese I2Cdev aber auch nicht. Eventuell kann man die MPU Beispiele auch selbst auf die Verwendung von Wire umschreiben.

  4. #4
    HaWe
    Gast
    Zitat Zitat von Mxt Beitrag anzeigen
    Eventuell kann man die MPU Beispiele auch selbst auf die Verwendung von Wire umschreiben.
    OMG, wer würde das machen?

    - - - Aktualisiert - - -

    PS:
    wo hast du die I2Cdev überhaupt her? Wo steht die passende Version? Vlt habe ich ja ne alte oder falsche...?

  5. #5
    Erfahrener Benutzer Roboter Experte
    Registriert seit
    04.09.2011
    Ort
    Hessen
    Beiträge
    707
    Aus deinem Link oben, Beitrag von 12:24.

    Ich habe nichts gemacht, als das von Github herunterzuladen und die I2Cdev und MPU6050 Verzeichnisse in den Arduino Libraries Ordner zu kopieren. Mittlerweile habe ich es aber wieder gelöscht...

  6. #6
    HaWe
    Gast
    verstehe ich nicht, da finde ich nichts...
    https://github.com/jrowberg/i2cdevli...rduino/MPU6050

    - - - Aktualisiert - - -

    edit, aaahhh... 1 Verzeichnis höher!

    edit2:
    aber keine Änderung, compiliert immer noch nicht, war wohl die gleiche, die ich schon hatte.

  7. #7
    HaWe
    Gast
    Meine Vermutung bzgl. BUFFER_LENGTH in https://www.roboternetz.de/community...l=1#post647107 war doch richtig, allerdings muss das neue #ifndef... in die i2clib, nicht in den Code:



    Arduino\portable\libraries\I2Cdev\I2Cdev.cpp

    Lines 90 to 93 in I2Cdev.cpp
    #ifndef BUFFER_LENGTH
    // band-aid fix for platforms without Wire-defined BUFFER_LENGTH (removed from some official implementations)
    #define BUFFER_LENGTH 32
    #endif

Ähnliche Themen

  1. Fragen zu Kalman-Filter
    Von Flo89 im Forum Sensoren / Sensorik
    Antworten: 3
    Letzter Beitrag: 04.10.2013, 20:50
  2. ST LPR530AL + Kalman Filter
    Von Pepade im Forum Sensoren / Sensorik
    Antworten: 3
    Letzter Beitrag: 23.04.2010, 07:29
  3. Kalman Filter für BASCOM
    Von harry1 im Forum Sensoren / Sensorik
    Antworten: 30
    Letzter Beitrag: 28.10.2009, 23:22
  4. An die Kalman-Filter-Fachleute
    Von Crazy Harry im Forum Sensoren / Sensorik
    Antworten: 2
    Letzter Beitrag: 08.05.2006, 21:33
  5. Kalman-Filter - wie/wo/was ?
    Von Crazy Harry im Forum Sensoren / Sensorik
    Antworten: 4
    Letzter Beitrag: 02.02.2006, 10:23

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

Labornetzteil AliExpress