Re:PID Control Challenges
by cellularmitosis on Sunday September 24, 2023 @08:48PM
(#37638546)
I find this hard to believe. Even a humble arduino can do 34,000 software float divides per second. https://gist.github.com/cellularmitosis/506c878631f806cfe6f8...
[ Parent
| on HN ]
Re:PID Control Challenges
by distract8901 on Monday September 25, 2023 @11:50AM
(#37645837)
It can but that doesn't mean it's a great idea.
Unless your chip has a hardware floating point unit, you're stuck using software float operations. They're slower, though not extraordinarily so. But the main drawback is the floating point library can massively inflate your code size to the point that it no longer fits in available memory.
If you can get away with it, it's fine, but when you can't it's a huge problem.