修正计算控制电流初值函数的返回类型
authorkyz <kongyuzhong@google.com>
Tue, 11 Jun 2024 02:01:42 +0000 (10:01 +0800)
committerkyz <kongyuzhong@google.com>
Tue, 11 Jun 2024 02:01:42 +0000 (10:01 +0800)
user/user_valve_ctrl.c

index f3dbf338789b0eccf5e986e3f0295abcd8908bea..9e8d3baf1e2b5684cfa1a11805c60f8298550d5c 100644 (file)
@@ -86,7 +86,7 @@ void calc_valve_curr_range( float pressure_kpa, float *curr_start, float *flow_s
     *flow_speed_max = flow_max;
 }
 
-uint32_t calc_valve_current( float pressure_kpa, float flowrate )
+float calc_valve_current( float pressure_kpa, float flowrate )
 {
     float  curr_start;
     float flow_max;