优化272表冠效果 2773/1 2773/head 2774/target/1
authorpenglei <1624952103@qq.com>
Thu, 20 Nov 2025 03:07:40 +0000 (11:07 +0800)
committerpenglei <1624952103@qq.com>
Thu, 20 Nov 2025 03:07:40 +0000 (11:07 +0800)
code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c

index fde6e7c..78cb0b8 100644 (file)
@@ -851,9 +851,9 @@ void ots_result_deal(int16_t x)
         return;
 #endif
 
-    if(abs(x)>=4 )
+    if(abs(x)>=2 )
     {
-        ots_result += x/4; //大于等于4的值除以4, 代表角度, 数字4 在匀速转动中大约等于1°
+        ots_result += x/2; //大于等于4的值除以4, 代表角度, 数字4 在匀速转动中大约等于1°
     }
     else //出值2,3 默认大约为1°
     {