From c454e90d42054948485ffe226a3071b71778ab1c Mon Sep 17 00:00:00 2001 From: Fisch Date: Fri, 8 Sep 2023 09:42:54 +0200 Subject: [PATCH] disable temperature warning for bobbycar --- Inc/config.h | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Inc/config.h b/Inc/config.h index 0c5b6fa..f061e1d 100644 --- a/Inc/config.h +++ b/Inc/config.h @@ -14,8 +14,8 @@ pio run -t upload //Select the calibration values for the different pcbs //#define BOBBYCAR_PCB_FRONT //Green PCB. black programming cable. outer power button -//#define BOBBYCAR_PCB_REAR //Blue PCB. with XT60-U, beige programming cable. inner power button -#define HOVERBRETT //Green PCB in Hoverbrett +#define BOBBYCAR_PCB_REAR //Blue PCB. with XT60-U, beige programming cable. inner power button +//#define HOVERBRETT //Green PCB in Hoverbrett #if defined(HOVERBRETT) #define INVERT_R_DIRECTION // Invert right motor @@ -146,6 +146,11 @@ pio run -t upload #define TEMP_CAL_LOW_DEG_C 210 // temperature 1: measured temperature [°C * 10]. Here 22.0 °C #define TEMP_CAL_HIGH_ADC 1580 // temperature 2: ADC value #define TEMP_CAL_HIGH_DEG_C 500 // temperature 2: measured temperature [°C * 10]. Here °C + + #define TEMP_WARNING_ENABLE 0 // to beep or not to beep, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION! + #define TEMP_WARNING 600 // annoying fast beeps [°C * 10]. Here 60.0 °C + #define TEMP_POWEROFF_ENABLE 0 // to poweroff or not to poweroff, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION! + #define TEMP_POWEROFF 650 // overheat poweroff. (while not driving) [°C * 10]. Here 65.0 °C #endif #ifdef BOBBYCAR_PCB_REAR //REAR WHEELS PCB @@ -153,6 +158,11 @@ pio run -t upload #define TEMP_CAL_LOW_DEG_C 220 // temperature 1: measured temperature [°C * 10]. Here 22.0 °C #define TEMP_CAL_HIGH_ADC 1580 // temperature 2: ADC value #define TEMP_CAL_HIGH_DEG_C 500 // temperature 2: measured temperature [°C * 10]. Here 50.0 °C + + #define TEMP_WARNING_ENABLE 0 // to beep or not to beep, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION! + #define TEMP_WARNING 600 // annoying fast beeps [°C * 10]. Here 60.0 °C + #define TEMP_POWEROFF_ENABLE 0 // to poweroff or not to poweroff, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION! + #define TEMP_POWEROFF 650 // overheat poweroff. (while not driving) [°C * 10]. Here 65.0 °C #endif #ifdef HOVERBRETT //Hoverbrett @@ -160,12 +170,14 @@ pio run -t upload #define TEMP_CAL_LOW_DEG_C 210 // temperature 1: measured temperature [°C * 10]. Here 22.0 °C #define TEMP_CAL_HIGH_ADC 1600 // temperature 2: ADC value #define TEMP_CAL_HIGH_DEG_C 420 // temperature 2: measured temperature [°C * 10]. Here °C + + #define TEMP_WARNING_ENABLE 1 // to beep or not to beep, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION! + #define TEMP_WARNING 600 // annoying fast beeps [°C * 10]. Here 60.0 °C + #define TEMP_POWEROFF_ENABLE 0 // to poweroff or not to poweroff, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION! + #define TEMP_POWEROFF 650 // overheat poweroff. (while not driving) [°C * 10]. Here 65.0 °C #endif -#define TEMP_WARNING_ENABLE 1 // to beep or not to beep, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION! -#define TEMP_WARNING 600 // annoying fast beeps [°C * 10]. Here 60.0 °C -#define TEMP_POWEROFF_ENABLE 0 // to poweroff or not to poweroff, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION! -#define TEMP_POWEROFF 650 // overheat poweroff. (while not driving) [°C * 10]. Here 65.0 °C + // ######################## END OF TEMPERATURE ###############################