Hey all,
I’m currently trying to use an interpolation library to do some data manipulation. I’ve downloaded the library for arduino IDE, but everytime I try to compile the code I get an error. It basically says it cannot compile due to an error in the actual library code, I’m not sure if there is a way around because the library works just fine if the IDE is set to arduino UNO, but gives an error if I use the redboard turbo. Not sure what to do, but any help would be greatly appreciated. Further down is the error message
C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:10:114: error: default argument given for parameter 5 of ‘static double Interpolation::Step(double*, double*, int, double, double)’ [-fpermissive]
double Interpolation::Step(double xValues, double yValues, int numValues, double pointX, double threshold = 1)
^
In file included from C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:8:0:
C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.h:66:16: error: after previous specification in ‘static double Interpolation::Step(double*, double*, int, double, double)’ [-fpermissive]
static double Step(double xValues, double yValues, int numValues, double pointX, double threshold = 1);
^
C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:24:112: error: default argument given for parameter 5 of ‘static double Interpolation::Linear(double*, double*, int, double, bool)’ [-fpermissive]
double Interpolation::Linear(double xValues, double yValues, int numValues, double pointX, bool trim = true)
^
In file included from C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:8:0:
C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.h:70:16: error: after previous specification in ‘static double Interpolation::Linear(double*, double*, int, double, bool)’ [-fpermissive]
static double Linear(double xValues, double yValues, int numValues, double pointX, bool trim = true);
^
C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:56:116: error: default argument given for parameter 5 of ‘static double Interpolation::SmoothStep(double*, double*, int, double, bool)’ [-fpermissive]
double Interpolation::SmoothStep(double xValues, double yValues, int numValues, double pointX, bool trim = true)
^
In file included from C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:8:0:
C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.h:72:16: error: after previous specification in ‘static double Interpolation::SmoothStep(double*, double*, int, double, bool)’ [-fpermissive]
static double SmoothStep(double xValues, double yValues, int numValues, double pointX, bool trim = true);
^
C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:75:119: error: default argument given for parameter 5 of ‘static double Interpolation::CatmullSpline(double*, double*, int, double, bool)’ [-fpermissive]
double Interpolation::CatmullSpline(double xValues, double yValues, int numValues, double pointX, bool trim = true)
^
In file included from C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:8:0:
C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.h:73:16: error: after previous specification in ‘static double Interpolation::CatmullSpline(double*, double*, int, double, bool)’ [-fpermissive]
static double CatmullSpline(double xValues, double yValues, int numValues, double pointX, bool trim = true);
^
C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:131:123: error: default argument given for parameter 5 of ‘static double Interpolation::ConstrainedSpline(double*, double*, int, double, bool)’ [-fpermissive]
double Interpolation::ConstrainedSpline(double xValues, double yValues, int numValues, double pointX, bool trim = true)
^
In file included from C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.cpp:8:0:
C:\Users\Rhashaan.Omar\Documents\Arduino\libraries\InterpolationLib-1.0.0\src\InterpolationLib.h:74:16: error: after previous specification in ‘static double Interpolation::ConstrainedSpline(double*, double*, int, double, bool)’ [-fpermissive]
static double ConstrainedSpline(double xValues, double yValues, int numValues, double pointX, bool trim = true);
^
exit status 1
Error compiling for board SparkFun RedBoard Turbo.