UCSolarCarTeam / Epsilon-Embedded-Software

4 stars 1 forks source link

SFT-117 Smooth jumps in current in Driver Controls #146

Closed badeniran closed 4 years ago

badeniran commented 4 years ago

During FSGP 2019, many issues with motors tripping when switching 0 current out to high current out. IIR Low Pass Filter (system that is resistant to change) implemented to solve this issue.

badeniran commented 4 years ago

A smoothing factor of 0.15 was pretty arbitrary. It could potentially be bigger or may need to be smaller, but testing will be needed to find a value that gives us what we want

bill-luu commented 4 years ago

Does smoothCurrent make enough sense as a function name to a new reader, or should we call it something like lowPassFilter?

badeniran commented 4 years ago

Does smoothCurrent make enough sense as a function name to a new reader, or should we call it something like lowPassFilter?

That might be a good idea. I guess I could also add a quick description as to what a low pass filter is