From 463f36350af249b38d5dd32fce5dc1214341d0e7 Mon Sep 17 00:00:00 2001 From: kyz Date: Wed, 6 Mar 2024 10:41:17 +0800 Subject: [PATCH] =?utf8?q?AD5245=E4=BF=AE=E6=94=B9=E4=B8=BA50K=E7=94=B5?= =?utf8?q?=E9=98=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- user/user_proportionvalve.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/user_proportionvalve.c b/user/user_proportionvalve.c index 9c102df..0a4a628 100644 --- 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/(100*1000); + data = (r_wb -100)*256/(50*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-100K) + //R_set = AD5245 (100-50K) float R_out; uint32_t R_set; -- 2.34.1