1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Fix setpoint rate sign, optimize code, cleanup from review

Also adds a `scaleRangef()` function to math.c
This commit is contained in:
Bruce Luckcuck 2018-06-27 19:27:22 -04:00
parent 0cd61c3a0f
commit 9b49d481e3
4 changed files with 37 additions and 53 deletions

View file

@ -102,6 +102,7 @@ float devStandardDeviation(stdev_t *dev);
float degreesToRadians(int16_t degrees);
int scaleRange(int x, int srcFrom, int srcTo, int destFrom, int destTo);
float scaleRangef(float x, float srcFrom, float srcTo, float destFrom, float destTo);
void normalizeV(struct fp_vector *src, struct fp_vector *dest);