Skip to content

Error(s) while compiling FreeIMU_serial for Arduino Due, GY-86 #98

@vishwam93

Description

@vishwam93

Arduino IDE - 1.5.7
Arduino Due
Windows 10 64 bit
GY-86

I am trying to upload the FreeIMU_serial for calibration but I am flooded with errors when I do. The only changes I've made to the sketch is commenting out the header files for all sensors but the ones on the GY-86 (MPU6050 + HMC5883L + MS5611). I've also let I2Cdev.h and BaroSensor.h stay uncommented.

Arduino: 1.5.7 (Windows 8), Board: "Arduino Due (Programming Port)"

THESE ARE THE ERRORS:

In file included from f:\thesis\arduino-1.5.7\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\type_traits:35:0,
                 from F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:7,
                 from FreeIMU_serial_Vishwam.ino:26:
f:\thesis\arduino-1.5.7\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\bits\c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from FreeIMU_serial_Vishwam.ino:26:0:
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:37:15: error: 'enable_if' in namespace 'std' does not name a type
 typename std::enable_if<std::is_integral<typename std::common_type<Arithmetic1, Arithmetic2>::type>::value ,bool>::type
               ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:37:24: error: expected unqualified-id before '<' token
 typename std::enable_if<std::is_integral<typename std::common_type<Arithmetic1, Arithmetic2>::type>::value ,bool>::type
                        ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:41:15: error: 'enable_if' in namespace 'std' does not name a type
 typename std::enable_if<std::is_floating_point<typename std::common_type<Arithmetic1, Arithmetic2>::type>::value, bool>::type
               ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:41:24: error: expected unqualified-id before '<' token
 typename std::enable_if<std::is_floating_point<typename std::common_type<Arithmetic1, Arithmetic2>::type>::value, bool>::type
                        ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h: In function 'bool is_zero(T)':
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:49:19: error: 'is_floating_point' is not a member of 'std'
     static_assert(std::is_floating_point<T>::value || std::is_base_of<T,float>::value,
                   ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:49:43: error: expected primary-expression before '>' token
     static_assert(std::is_floating_point<T>::value || std::is_base_of<T,float>::value,
                                           ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:49:44: error: '::value' has not been declared
     static_assert(std::is_floating_point<T>::value || std::is_base_of<T,float>::value,
                                            ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:49:55: error: 'is_base_of' is not a member of 'std'
     static_assert(std::is_floating_point<T>::value || std::is_base_of<T,float>::value,
                                                       ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:49:72: error: expected primary-expression before ',' token
     static_assert(std::is_floating_point<T>::value || std::is_base_of<T,float>::value,
                                                                        ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:49:73: error: expected primary-expression before 'float'
     static_assert(std::is_floating_point<T>::value || std::is_base_of<T,float>::value,
                                                                         ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:50:57: error: there are no arguments to 'static_assert' that depend on a template parameter, so a declaration of 'static_assert' must be available [-fpermissive]
                   "Template parameter not of type float");
                                                         ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:50:57: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h: At global scope:
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:116:36: error: expected type-specifier before 'decltype'
 auto wrap_180_cd(const T angle) -> decltype(wrap_180(angle, 100.f));
                                    ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:116:36: error: expected initializer before 'decltype'
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:130:36: error: expected type-specifier before 'decltype'
 auto wrap_360_cd(const T angle) -> decltype(wrap_360(angle, 100.f));
                                    ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:130:36: error: expected initializer before 'decltype'
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:204:55: error: expected type-specifier before 'decltype'
 static inline auto MIN(const A &one, const B &two) -> decltype(one < two ? one : two)
                                                       ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:204:55: error: expected initializer before 'decltype'
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:210:55: error: expected type-specifier before 'decltype'
 static inline auto MAX(const A &one, const B &two) -> decltype(one > two ? one : two)
                                                       ^
F:\Thesis\arduino-1.5.7\libraries\AP_Math_freeimu/AP_Math_freeimu.h:210:55: error: expected initializer before 'decltype'
In file included from FreeIMU_serial_Vishwam.ino:27:0:
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:29:10: error: 'constexpr' does not name a type
   static constexpr float Coef1 = 1.9777864838f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:29:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:30:10: error: 'constexpr' does not name a type
   static constexpr float Coef2 = -0.9780305085f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:30:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:31:10: error: 'constexpr' does not name a type
   static constexpr float GAIN = 1.639178228e+04f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:31:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:46:10: error: 'constexpr' does not name a type
   static constexpr float Coef1 = 1.9555782403f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:46:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:47:10: error: 'constexpr' does not name a type
   static constexpr float Coef2 = -0.9565436765f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:47:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:48:10: error: 'constexpr' does not name a type
   static constexpr float GAIN = 4.143204922e+03f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:48:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:62:10: error: 'constexpr' does not name a type
   static constexpr float Coef1 = 1.9111970674f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:62:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:63:10: error: 'constexpr' does not name a type
   static constexpr float Coef2 = -0.9149758348f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:63:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:64:10: error: 'constexpr' does not name a type
   static constexpr float GAIN = 1.058546241e+03f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:64:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:78:10: error: 'constexpr' does not name a type
   static constexpr float Coef1 = 1.8668922797f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:78:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:79:10: error: 'constexpr' does not name a type
   static constexpr float Coef2 = -0.8752145483f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:79:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:80:10: error: 'constexpr' does not name a type
   static constexpr float GAIN = 4.806381793e+02f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:80:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:94:10: error: 'constexpr' does not name a type
   static constexpr float Coef1 = 1.8226949252f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:94:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:95:10: error: 'constexpr' does not name a type
   static constexpr float Coef2 = -0.8371816513f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:95:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:96:10: error: 'constexpr' does not name a type
   static constexpr float GAIN = 2.761148367e+02f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:96:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:110:10: error: 'constexpr' does not name a type
   static constexpr float Coef1 = 1.7347257688f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:110:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:111:10: error: 'constexpr' does not name a type
   static constexpr float Coef2 = -0.7660066009f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:111:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:112:10: error: 'constexpr' does not name a type
   static constexpr float GAIN = 1.278738361e+02f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:112:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:126:10: error: 'constexpr' does not name a type
   static constexpr float Coef1 = 1.6474599811f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:126:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:127:10: error: 'constexpr' does not name a type
   static constexpr float Coef2 = -0.7008967812f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:127:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:128:10: error: 'constexpr' does not name a type
   static constexpr float GAIN = 7.485478157e+01f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:128:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:142:10: error: 'constexpr' does not name a type
   static constexpr float Coef1 = 1.3072850288f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:142:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:143:10: error: 'constexpr' does not name a type
   static constexpr float Coef2 = -0.4918122372f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:143:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:144:10: error: 'constexpr' does not name a type
   static constexpr float GAIN = 2.167702007e+01f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:144:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:158:10: error: 'constexpr' does not name a type
   static constexpr float Coef1 = 0.6710290908f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:158:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:159:10: error: 'constexpr' does not name a type
   static constexpr float Coef2 = -0.2523246263f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:159:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:160:10: error: 'constexpr' does not name a type
   static constexpr float GAIN = 6.881181354e+00f;
          ^
F:\Thesis\arduino-1.5.7\libraries\AP_Filter/Butter.h:160:10: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
FreeIMU_serial_Vishwam.ino: In function 'void loop()':
FreeIMU_serial_Vishwam.ino:170:7: error: 'cmd1' was not declared in this scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions