Waveform filter programs

◆ convert_v_to_Pres_PSI_0_500()

double DDAS3::convert_v_to_Pres_PSI_0_500 ( double  volts)

Definition at line 269 of file sigscale.cc.

Referenced by convert_to_display_units().

270  {
271  double dPSI;
272 
273  if ( volts < 0.1 )
274  // clip value to -10PSI if out of range e.g.sensor faulty
275  return -10.0 ;
276 
277  else if ( volts > 1.8 )
278  // clip value to 1000PSI if out of range e.g.sensor unplugged
279  return 1000 ;
280 
281  dPSI = (volts - 0.1996) * 626.2525 ;
282 
283  //Should there be an error condition??
284  //if ( x <= -1.0 || x >= 1.0 ) x = 0 ; /* error condition */
285  return dPSI;
286  } // double convert_v_to_Pres_PSI_0_500(double volts)
Here is the caller graph for this function: