From 6bce312e58459eb9f9ae57831c178c1bfd928627 Mon Sep 17 00:00:00 2001 From: xinyang <895639507@qq.com> Date: Sat, 13 Jul 2019 14:02:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=8B=AC=E7=AB=8Bconfig?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- others/include/config/setconfig.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/others/include/config/setconfig.h b/others/include/config/setconfig.h index 7aee5c4..ad02e32 100644 --- a/others/include/config/setconfig.h +++ b/others/include/config/setconfig.h @@ -1,14 +1,22 @@ #ifndef _SETCONFIG_H_ #define _SETCONFIG_H_ + #ifdef WITH_CONFIG #include #else #warning "Without config.h" - #define ARMOR_CAMERA_GAIN (30) - #define ENERGY_CAMERA_GAIN (20) -// #define GIMBAL_FLIP_MODE (-1) -// #define CHASSIS_FLIP_MODE (-1) #endif + +#ifndef ARMOR_CAMERA_GAIN + #define ARMOR_CAMERA_GAIN (30) +#endif +#ifndef ENERGY_CAMERA_GAIN + #define ENERGY_CAMERA_GAIN (20) +#endif +//#define GIMBAL_FLIP_MODE (-1) +//#define CHASSIS_FLIP_MODE (-1) + + #endif /* SETCONFIG_H */