parent
df5bb1c0a9
commit
11ced4afcd
|
@ -598,7 +598,7 @@ unsigned long SIG16130_RetrievalData(uint8_t rdata, uint8_t chksum)
|
|||
return (SIG16130_adc_data);
|
||||
}
|
||||
|
||||
float32 cali_test = 0;
|
||||
//float32 cali_test = 0;
|
||||
void fun_get_sig16132_ch(uint8_t channel, float32 *data)
|
||||
{
|
||||
if (!data)
|
||||
|
@ -654,13 +654,13 @@ void fun_get_sig16132_ch(uint8_t channel, float32 *data)
|
|||
if (channel == MUX_CHANNEL_V_IN) // if (channel == 2) // 0~30V电压输入检测
|
||||
{
|
||||
*data = voltage * 16.0f;
|
||||
mux_signal.pv_calibrated = calibrate_vol_v_in(cali_test);
|
||||
//mux_signal.pv_calibrated = calibrate_vol_v_in(*data);
|
||||
//mux_signal.pv_calibrated = calibrate_vol_v_in(cali_test);
|
||||
mux_signal.pv_calibrated = calibrate_vol_v_in(*data);
|
||||
}
|
||||
else if (channel == MUX_CHANNEL_MV_IN) //else if (channel == 3) // mV电压输入检测
|
||||
{
|
||||
*data = voltage * 1000.0f - 0.2f;
|
||||
mux_signal.pv_calibrated = *data;
|
||||
mux_signal.pv_calibrated = calibrate_vol_mv_in(*data);
|
||||
}
|
||||
else if (channel == MUX_CHANNEL_MV_FEEDBACK) //else if (channel == 4) //-2.5~2.5V输出反馈
|
||||
{
|
||||
|
@ -699,7 +699,7 @@ void fun_get_sig16132_ch(uint8_t channel, float32 *data)
|
|||
|
||||
// *data = temp1;
|
||||
*data = voltage * 1000.0f/ 0.5f;
|
||||
mux_signal.pv_calibrated = *data;
|
||||
mux_signal.pv_calibrated = calibrate_res_ohm_in(*data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -270,11 +270,6 @@
|
|||
<WinNumber>1</WinNumber>
|
||||
<ItemText>cali_paras</ItemText>
|
||||
</Ww>
|
||||
<Ww>
|
||||
<count>23</count>
|
||||
<WinNumber>1</WinNumber>
|
||||
<ItemText>cali_test</ItemText>
|
||||
</Ww>
|
||||
</WatchWindow1>
|
||||
<WatchWindow2>
|
||||
<Ww>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue