LiquidCGS / FastIMU

the IMU library to rule them all (wip)
MIT License
122 stars 15 forks source link

An error occurred while compiling #8

Closed jiahao2333 closed 11 months ago

jiahao2333 commented 11 months ago

Ardunio 2.1.1

Fast IMU 1.2.1

An error occurred while compiling

In file included from c:\Users\11984\Documents\Arduino\libraries\FastIMU\src/FastIMU.h:18,
                 from C:\Users\11984\Documents\Arduino\sketch_jul25a\sketch_jul25a.ino:1:
c:\Users\11984\Documents\Arduino\libraries\FastIMU\src/F_QMC5883L.hpp: In member function 'virtual int QMC5883L::setGyroRange(int)':
c:\Users\11984\Documents\Arduino\libraries\FastIMU\src/F_QMC5883L.hpp:45:40: error: no return statement in function returning non-void [-Werror=return-type]
   45 |  int setGyroRange(int range) override {};
      |                                        ^
c:\Users\11984\Documents\Arduino\libraries\FastIMU\src/F_QMC5883L.hpp: In member function 'virtual int QMC5883L::setAccelRange(int)':
c:\Users\11984\Documents\Arduino\libraries\FastIMU\src/F_QMC5883L.hpp:46:41: error: no return statement in function returning non-void [-Werror=return-type]
   46 |  int setAccelRange(int range) override {};
      |                                         ^
cc1plus.exe: some warnings being treated as errors

exit status 1

Compilation error: exit status 1

The file with compilation error is examples/Calibrated_HadesVR/Calibrated_HadesVR.ino My current setup is preferences->compiler warnings->none Is my problem?🤔 Thanks.

LiquidCGS commented 11 months ago

Ah, Im an idiot, will fix in a minute

LiquidCGS commented 11 months ago

Library update will take a few hours to show up in the IDE

jiahao2333 commented 11 months ago

Cool! Thank