Waveform filter programs

◆ convert_v_to_Pres_MPa_0_3447()

double DDAS3::convert_v_to_Pres_MPa_0_3447 ( double  volts)

Definition at line 510 of file sigscale.cc.

Referenced by convert_to_display_units().

511  {
512  double MPa;
513 
514  if ( volts < 0.1 )
515  // clip value to -4.50MPa if out of range e.g.sensor faulty
516  return -4.500 ;
517 
518  else if ( volts > 1.8 )
519  // clip value to 7.000MPa if out of range e.g.sensor unplugged
520  return 7.000 ;
521 
522  MPa = (volts - 0.1996) * 4.317859 ;
523 
524  //Should there be an error condition??
525  //if ( x <= -1.0 || x >= 1.0 ) x = 0 ; /* error condition */
526  return MPa;
527  } // double convert_v_to_Pres_MPa_0_3447(double volts)
Here is the caller graph for this function: