VNWheel icon indicating copy to clipboard operation
VNWheel copied to clipboard

error compiler

Open ShinobiMega opened this issue 3 years ago • 0 comments

hello, I found this file incredible, but I couldn't compile it, I downloaded the recommended version 1.8.10 and tried to compile it, but it reports an error of missing the filters.h file

I downloaded a library filter1.1.0 straight from arduino, and now these errors appear, what could it be? Thank you all for the attention.

FfbEngine.cpp:29:1: error: 'IIR' does not name a type; did you mean 'ISR'?

IIR::ORDER order = IIR::ORDER::OD1; // Order (OD1 to OD4)

^~~

ISR

FfbEngine.cpp:30:1: error: 'Filter' does not name a type

Filter damperFilter(cutoff_freq_damper, sampling_time_damper, order);

^~~~~~

FfbEngine.cpp:31:1: error: 'Filter' does not name a type

Filter interiaFilter(cutoff_freq_damper, sampling_time_damper, order);

^~~~~~

FfbEngine.cpp:32:1: error: 'Filter' does not name a type

Filter frictionFilter(cutoff_freq_damper, sampling_time_damper, order);

^~~~~~

sketch\FfbEngine.cpp: In member function 'int32_t FfbEngine::ConditionForceCalculator(volatile TEffectState&, float)':

FfbEngine.cpp:185:19: error: 'damperFilter' was not declared in this scope

   tempForce = damperFilter.filterIn(tempForce);

               ^~~~~~~~~~~~

FfbEngine.cpp:188:19: error: 'interiaFilter' was not declared in this scope

   tempForce = interiaFilter.filterIn(tempForce);

               ^~~~~~~~~~~~~

FfbEngine.cpp:191:19: error: 'frictionFilter' was not declared in this scope

   tempForce = frictionFilter.filterIn(tempForce);

               ^~~~~~~~~~~~~~

Foram encontradas múltiplas bibliotecas para "Calculus.h" Usado: C:\Users\lirod\Documents\Arduino\libraries\Filters exit status 1 'IIR' does not name a type; did you mean 'ISR'?

ShinobiMega avatar Aug 01 '21 01:08 ShinobiMega