From df37f6dcc327bac2c2919c57342f92b6e6a3424c Mon Sep 17 00:00:00 2001 From: Candas1 Date: Tue, 27 Oct 2020 19:41:47 +0100 Subject: [PATCH] Add parameter for ADC deadband --- Inc/config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Inc/config.h b/Inc/config.h index cbd43e5..a374132 100644 --- a/Inc/config.h +++ b/Inc/config.h @@ -254,6 +254,7 @@ // #define ADC_PROTECT_ENA // ADC Protection Enable flag. Use this flag to make sure the ADC is protected when GND or Vcc wire is disconnected #define ADC_PROTECT_TIMEOUT 100 // ADC Protection: number of wrong / missing input commands before safety state is taken #define ADC_PROTECT_THRESH 300 // ADC Protection threshold below/above the MIN/MAX ADC values + #define ADC_DEADBAND 100 // How much of the center position is considered 'center' (100 = values -100 to 100 are considered 0) // #define ADC1_MID_POT // ADC1 middle resting poti: comment-out if NOT a middle resting poti #define ADC1_MIN 0 // min ADC1-value while poti at minimum-position (0 - 4095) #define ADC1_MID 2048 // mid ADC1-value while poti at minimum-position (ADC1_MIN - ADC1_MAX)