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 */