projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68409bc
)
272优化产测HFP连接,增加表冠校准(补)
2905/2
2905/head
2906/target/1
author
penglei
<1624952103@qq.com>
Wed, 10 Dec 2025 08:02:25 +0000
(16:02 +0800)
committer
penglei
<1624952103@qq.com>
Wed, 10 Dec 2025 08:02:25 +0000
(16:02 +0800)
code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c
patch
|
blob
|
history
diff --git
a/code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c
b/code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c
index
cb004aa
..
fae95df
100644
(file)
--- a/
code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c
+++ b/
code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c
@@
-130,7
+130,7
@@
void hx3508_get_sum_y(float *data)
g_sum_y = 360/(float)sum_deltay * 1000 * coffy;
// printf("sum_deltay : %d\n",sum_deltay);
// printf("g_sum_y : %.3f,coffy : %.3f\n",g_sum_y,coffy);
- *data = g_sum_y;
+ *data =
-
g_sum_y;
}
g_sum_y = 0;