Waveform filter programs
◆
convert_v_to_Pres_KPa_0_20684()
double DDAS3::convert_v_to_Pres_KPa_0_20684
(
double
volts
)
Definition at line
370
of file
sigscale.cc
.
Referenced by
convert_to_display_units()
.
371
{
372
double
KPa;
373
374
if
( volts < 0.1 )
375
// clip value to -2700KPa if out of range e.g.sensor faulty
376
return
-2700.0 ;
377
378
else
if
( volts > 1.8 )
379
// clip value to 42000KPa if out of range e.g.sensor unplugged
380
return
42000 ;
381
382
KPa = (volts - 0.1996) * 25907.1541 ;
383
384
//Should there be an error condition??
385
//if ( x <= -1.0 || x >= 1.0 ) x = 0 ; /* error condition */
386
return
KPa;
387
}
// double convert_v_to_Pres_KPa_0_20684(double volts)
Here is the caller graph for this function:
DDAS3
Generated on Mon Aug 21 2023 17:36:35 for Waveform filter programs by
1.8.14