don't link debug.c to pid unit test

This commit is contained in:
Thorsten Laux 2018-05-28 16:03:49 +02:00
parent 2c02c14a1d
commit 7e12e9da18
2 changed files with 4 additions and 2 deletions

View File

@ -298,7 +298,6 @@ pid_unittest_SRC := \
$(USER_DIR)/drivers/accgyro/gyro_sync.c \ $(USER_DIR)/drivers/accgyro/gyro_sync.c \
$(USER_DIR)/flight/pid.c \ $(USER_DIR)/flight/pid.c \
$(USER_DIR)/pg/pg.c \ $(USER_DIR)/pg/pg.c \
$(USER_DIR)/build/debug.c \
$(USER_DIR)/fc/runtime_config.c $(USER_DIR)/fc/runtime_config.c
rcdevice_unittest_DEFINES := \ rcdevice_unittest_DEFINES := \

View File

@ -22,7 +22,7 @@
#include "unittest_macros.h" #include "unittest_macros.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "build/debug.h"
bool simulateMixerSaturated = false; bool simulateMixerSaturated = false;
float simulatedSetpointRate[3] = { 0,0,0 }; float simulatedSetpointRate[3] = { 0,0,0 };
@ -30,6 +30,9 @@ float simulatedRcDeflection[3] = { 0,0,0 };
float simulatedThrottlePIDAttenuation = 1.0f; float simulatedThrottlePIDAttenuation = 1.0f;
float simulatedMotorMixRange = 0.0f; float simulatedMotorMixRange = 0.0f;
int16_t debug[DEBUG16_VALUE_COUNT];
uint8_t debugMode;
extern "C" { extern "C" {
#include "build/debug.h" #include "build/debug.h"
#include "common/axis.h" #include "common/axis.h"