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:
068748f
)
优化表冠校准角度换算
2979/1
2979/head
2982/target/1
2992/target/1
author
luozheng
<1732036298@qq.com>
Fri, 26 Dec 2025 09:54:27 +0000
(17:54 +0800)
committer
luozheng
<1732036298@qq.com>
Fri, 26 Dec 2025 09:54:27 +0000
(17:54 +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
3a14be9
..
74cce43
100644
(file)
--- a/
code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c
+++ b/
code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c
@@
-142,7
+142,7
@@
void hx3508_get_sum_y(float *data)
{
printf("sum_deltay : %d coffy : %.3f\n",sum_deltay,coffy);
// g_sum_y = 360/(float)sum_deltay * 1200 * coffy;
- g_sum_y = (float)sum_deltay/
12
00.0f * 360.0f* coffy;
+ g_sum_y = (float)sum_deltay/
24
00.0f * 360.0f* coffy;
// printf("sum_deltay : %d\n",sum_deltay);
// printf("g_sum_y : %.3f,coffy : %.3f\n",g_sum_y,coffy);
*data = -g_sum_y;