Hi,
I am using Arduino Due with AltiMU-10 V5. However, when I try to compile the sketch
minimu-9-ahrs-arduino/MinIMU9AHRS at master · pololu/minimu-9-ahrs-arduino · GitHub it gives compilation error .h files not found.
Can you please assist in how to compile this program. Is there a necessary change I need to do in the program MinIMU9AHRS.ino. I am using Arduino 1.8.19 version IDE.
I wonder what ".h" files are missing. Have you studied the Pololu product page for that sensor?
Please read and follow the directions in the "How to get the best out of the forum" post, linked at the head of every forum category.
Hi ,
I was able to solve the header file issue. But now I came across this error.
I am not quite sure how the multiple .ino files work together in this case. any guidance would be helpful.
sketch\MinIMU9AHRS.ino.cpp.o: In function Gyro_Init()': C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:59: undefined reference to LSM6::writeReg(unsigned char, unsigned char)’
sketch\MinIMU9AHRS.ino.cpp.o: In function Read_Gyro()': C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:71: undefined reference to LSM6::readGyro()’
sketch\MinIMU9AHRS.ino.cpp.o: In function Accel_Init()': C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:92: undefined reference to LSM6::init(LSM6::deviceType, LSM6::sa0State)’
C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:93: undefined reference to LSM6::enableDefault()' C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:94: undefined reference to LSM6::writeReg(unsigned char, unsigned char)’
sketch\MinIMU9AHRS.ino.cpp.o: In function Read_Accel()': C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:116: undefined reference to LSM6::readAcc()’
sketch\MinIMU9AHRS.ino.cpp.o: In function Compass_Init()': C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:136: undefined reference to LIS3MDL::init(LIS3MDL::deviceType, LIS3MDL::sa1State)’
C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:137: undefined reference to LIS3MDL::enableDefault()' sketch\MinIMU9AHRS.ino.cpp.o: In function Read_Compass()’:
C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:146: undefined reference to LIS3MDL::read()' sketch\MinIMU9AHRS.ino.cpp.o: In function __static_initialization_and_destruction_0’:
C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:36: undefined reference to LSM6::LSM6()' C:\Users\veenakeeranagi\Documents\Arduino\minimu-9-ahrs-arduino-master\MinIMU9AHRS/I2C.ino:37: undefined reference to LIS3MDL::LIS3MDL()’
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Due (Programming Port).