Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
LERP as PID micro
   
Award
Favorite
Favorited
Unfavorite
Microcontrollers: Calculation, Microcontroller
Tags: v1.0.37
File Size
Posted
27.297 KB
17 Feb, 2021 @ 1:57pm
1 Change Note ( view )

Subscribe to download
LERP as PID micro

Description
Has versatile use, potentially replacing PID in cases where the Integral could be overflowing.
It is somewhat more straightforward and intuitive to set up than a PID.
E.g. can convert throttle (i.e. SetPoint) and engine RPS (i.e. Process Value) to engine throttle(i.e. Feedback Value).

Code is quite simple, you can take a look. All the heavy lifting is in ~5 lines.
Of course you can use this in your creations, that's why it's here :)
Check out my uploads for similar LERP-based microcontrollers.
I will provide more detailed description if needed.