增加独立config。

This commit is contained in:
xinyang
2019-07-13 14:02:37 +08:00
parent 292cd3eca0
commit 6bce312e58

View File

@@ -1,14 +1,22 @@
#ifndef _SETCONFIG_H_ #ifndef _SETCONFIG_H_
#define _SETCONFIG_H_ #define _SETCONFIG_H_
#ifdef WITH_CONFIG #ifdef WITH_CONFIG
#include <config/config.h> #include <config/config.h>
#else #else
#warning "Without config.h" #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 #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 */ #endif /* SETCONFIG_H */