Waveform filter programs

◆ convert_v_to_Pres_PSI_0_3000()

double DDAS3::convert_v_to_Pres_PSI_0_3000 ( double  volts)

Definition at line 302 of file sigscale.cc.

Referenced by convert_to_display_units().

303  {
304  double dPSI;
305 
306  if ( volts < 0.1 )
307  // clip value to -400PSI if out of range e.g.sensor faulty
308  return -400.0 ;
309 
310  else if ( volts > 1.8 )
311  // clip value to 6000PSI if out of range e.g.sensor unplugged
312  return 6000 ;
313 
314  dPSI = (volts - 0.1996) * 3757.5150 ;
315 
316  //Should there be an error condition??
317  //if ( x <= -1.0 || x >= 1.0 ) x = 0 ; /* error condition */
318  return dPSI;
319  } // double convert_v_to_Pres_PSI_0_3000(double volts)
Here is the caller graph for this function: