ButterFlight / butterflight

GNU General Public License v3.0
106 stars 26 forks source link

Rc interpolation optimization #81

Closed orneryd closed 6 years ago

orneryd commented 6 years ago

this change reduces CPU load considerably when using rc_interpolation.

orneryd commented 6 years ago

verified in conjunction with the imuf_104 branch. This reduces CPU load considerably for 32K. It limits the interpolation to every other loop when running faster than 16K.

rs2k commented 6 years ago

Woohoo! Say goodbye to redundant division and hello to speed! 🥇

Looks good to me!