Open AdamMarciniak opened 4 years ago
Not sure what the problem could be, the MadgwickQuaternionUpdate function is in the MPU6050IMU.ino file...
On Sun, Jul 12, 2020 at 9:33 PM Adam Marciniak notifications@github.com wrote:
I download the github repo and extract it to my Arduino folder in My Documents. Then, I try and run MUP6050IMU.ino file and it says "MadgwickQuaternionUpdate' was not declared in this scope".
If I try and run MPU6050BasicExample.ino it errors out with this:
Linking everything together... "C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax "-TC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/imxrt1062.ld" -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -o "C:\Users\Adam\AppData\Local\Temp\arduino_build_437672/MPU6050BasicExample.ino.elf" "C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch\MPU6050.cpp.o" "C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch\MPU6050BasicExample.ino.cpp.o" "C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\libraries\Wire\Wire.cpp.o" "C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\libraries\Wire\WireIMXRT.cpp.o" "C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\libraries\Wire\WireKinetis.cpp.o" "C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\libraries\Wire\utility\twi.c.o" "C:\Users\Adam\AppData\Local\Temp\arduino_build_437672/core\core.a" "-LC:\Users\Adam\AppData\Local\Temp\arduino_build_437672" -larm_cortexM7lfsp_math -lm -lstdc++ C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch\MPU6050BasicExample.ino.cpp.o:(.bss.Ascale+0x0): multiple definition of
Ascale' C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch\MPU6050.cpp.o:(.bss.Ascale+0x0): first defined here c:/program files (x86)/arduino/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch\MPU6050BasicExample.ino.cpp.o: In function
getGres()': C:\Users\Adam\Documents\Arduino\MPU6050-master\MPU6050BasicExample/MPU6050BasicExample.ino:237: multiple definition of `Gscale' C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch\MPU6050.cpp.o:C:\Users\Adam\AppData\Local\Temp\arduino_build_437672\sketch/MPU6050.cpp:169: first defined here collect2.exe: error: ld returned 1 exit status Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire Error compiling for board Teensy 4.0.I've got .h and .ccp files in the same folder as the example file.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU6050/issues/46, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKXAPVQQFIE3X4NLJ43R3KFAFANCNFSM4OYFGVYQ .
I download the github repo and extract it to my Arduino folder in My Documents. Then, I try and run MUP6050IMU.ino file and it says "MadgwickQuaternionUpdate' was not declared in this scope".
If I try and run MPU6050BasicExample.ino it errors out with this:
I've got .h and .ccp files in the same folder as the example file.