1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

De-duplicate vector matrix calculation code.

Saves 248 bytes of flash space when using -O0.
This commit is contained in:
Dominic Clifton 2015-06-24 22:33:36 +01:00
parent 6ce64d8ef9
commit 4fcecbd667
3 changed files with 33 additions and 52 deletions

View file

@ -77,6 +77,7 @@ int scaleRange(int x, int srcMin, int srcMax, int destMin, int destMax);
void normalizeV(struct fp_vector *src, struct fp_vector *dest);
void rotateV(struct fp_vector *v, fp_angles_t *delta);
void buildRotationMatrix(fp_angles_t *delta, float matrix[3][3]);
int32_t quickMedianFilter3(int32_t * v);
int32_t quickMedianFilter5(int32_t * v);