Slew rate limiter

My team is trying to ramp our speed slowly and slew rate limiter isn’t working for us. I’ve scoured the internet and have found no examples of slew rate limiter for c++ that worked for us and am asking for help.

Not what you asked for, but here is an example in Java.