mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +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:
parent
b480103d42
commit
c06106e2d1
16 changed files with 798 additions and 710 deletions
|
@ -376,6 +376,7 @@ pid_unittest_SRC := \
|
|||
$(USER_DIR)/drivers/accgyro/gyro_sync.c \
|
||||
$(USER_DIR)/fc/runtime_config.c \
|
||||
$(USER_DIR)/flight/pid.c \
|
||||
$(USER_DIR)/flight/pid_init.c \
|
||||
$(USER_DIR)/pg/pg.c
|
||||
|
||||
pid_unittest_DEFINES := \
|
||||
|
|
|
@ -52,9 +52,10 @@ extern "C" {
|
|||
#include "fc/rc_controls.h"
|
||||
#include "fc/runtime_config.h"
|
||||
|
||||
#include "flight/pid.h"
|
||||
#include "flight/imu.h"
|
||||
#include "flight/mixer.h"
|
||||
#include "flight/pid.h"
|
||||
#include "flight/pid_init.h"
|
||||
|
||||
#include "io/gps.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue