Browse Source

Правлю модуль энкодера.

TelenkovDmitry 2 weeks ago
parent
commit
1233c31851
3 changed files with 2 additions and 2 deletions
  1. 2 2
      desk/modules/menu/control.cpp
  2. BIN
      output/desk.bin
  3. 0 0
      project/ewarm/settings/tuber.wsdt

+ 2 - 2
desk/modules/menu/control.cpp

@@ -38,12 +38,12 @@ void init_encoder(void)
     sConfig.IC1Polarity = TIM_ICPOLARITY_RISING;
     sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI;
     sConfig.IC1Prescaler = TIM_ICPSC_DIV1;
-    sConfig.IC1Filter = 0; //100;
+    sConfig.IC1Filter = 100;
     
     sConfig.IC2Polarity = TIM_ICPOLARITY_RISING;
     sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI;
     sConfig.IC2Prescaler = TIM_ICPSC_DIV1;
-    sConfig.IC2Filter = 0; //100;
+    sConfig.IC2Filter = 100;
     
     HAL_TIM_Encoder_Init(&htim2, &sConfig);
     

BIN
output/desk.bin


File diff suppressed because it is too large
+ 0 - 0
project/ewarm/settings/tuber.wsdt


Some files were not shown because too many files changed in this diff