Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
LERP micro
   
Award
Favorite
Favorited
Unfavorite
Microcontrollers: Calculation, Microcontroller
Tags: v1.0.37
File Size
Posted
Updated
18.826 KB
17 Feb, 2021 @ 1:59pm
17 Feb, 2021 @ 2:04pm
3 Change Notes ( view )

Subscribe to download
LERP micro

Description
LERP is linear interpolation.
It is quite simple: it converts range (x1,x3) to range (y1,y3).
It is very versatile: simple or augmented versions can replace PID in multiple cases.

You can stabilise boat rolling with a tilt sensor -> LERP -> horizontal fins.
You can control engine RPS by using an augmented LERP (see my other uploads, "LERP as PID").

You can read up on wikipedia for more details.