projects
/
yn
/
weldingcontroller.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f568618
)
AD5245修改为50K电阻
author
kyz
<kyz@kyz.pub>
Wed, 6 Mar 2024 02:41:17 +0000
(10:41 +0800)
committer
kyz
<kyz@kyz.pub>
Wed, 6 Mar 2024 02:41:17 +0000
(10:41 +0800)
user/user_proportionvalve.c
patch
|
blob
|
history
diff --git
a/user/user_proportionvalve.c
b/user/user_proportionvalve.c
index 9c102df63c3b6b732184cd62cee8fb75336de515..0a4a62849a67f2bc92edff258e4540bc4bf6907d 100644
(file)
--- a/
user/user_proportionvalve.c
+++ b/
user/user_proportionvalve.c
@@
-85,7
+85,7
@@
int32_t ad5245_set_res( uint32_t r_wb )
if( r_wb <= 100 ){
data = 0;
}else{
- data = (r_wb -100)*256/(
10
0*1000);
+ data = (r_wb -100)*256/(
5
0*1000);
}
return ad5245_write( 0, data );
}
@@
-96,7
+96,7
@@
void lt3092_set_current( float current )
//R_set = R_out
//I_source = R_set/R_out * 10uA * 2
//R_out = 4.7
- //R_set = AD5245 (100-
10
0K)
+ //R_set = AD5245 (100-
5
0K)
float R_out;
uint32_t R_set;