1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Split initialization from pid.c for flash savings

Move low performance requirements initialization code into pid_init.c and optimize that for size.

Saves 2688 bytes for target STM32F7X2.
This commit is contained in:
Bruce Luckcuck 2020-05-02 12:23:26 -04:00
parent b480103d42
commit c06106e2d1
16 changed files with 798 additions and 710 deletions

View file

@ -24,9 +24,14 @@
#ifdef USE_INTERPOLATED_SP
#include "build/debug.h"
#include "common/maths.h"
#include "fc/rc.h"
#include "flight/interpolated_setpoint.h"
#include "flight/pid.h"
#include "interpolated_setpoint.h"
static float setpointDeltaImpl[XYZ_AXIS_COUNT];
static float setpointDelta[XYZ_AXIS_COUNT];