lkaino / Triflight

Triflight flight controller firmware for tricopters
http://rcexplorer.se
GNU General Public License v3.0
50 stars 19 forks source link

contraint change #35

Closed Bengt-M closed 8 years ago

Bengt-M commented 8 years ago

For some reason this seems to work better. You try before and after...

lkaino commented 8 years ago

Thanks, I fixed it by changing the constrain function to the float version, constrainf. Don't know why it didn't work with the int version.

Bengt-M commented 8 years ago

That is better since pSS->servoVal is a float. I guess it was a type cast that never happened.