SlewRateLimiter frc template error

error: ‘SlewRateLimiter’ in namespace ‘frc’ does not name a template type
36 | frc::SlewRateLimiterunits::scalar

This error occurs in our drivesubsystem.h file

Im initializing the variable in the drivesubsystem.cpp file

Are the following lines somewhere before the first instance of that type?

#include <frc/filter/SlewRateLimiter.h>
#include <units/dimensionless.h>

Just tried that ended up with the same error

Could you post your full code and full compiler printout? I need more context.

We ended up fixing the problem I don’t remember how but it works now thanks

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.