Waveform filter programs

◆ convert_v_to_Pres_MPa_0_20684()

double DDAS3::convert_v_to_Pres_MPa_0_20684 ( double  volts)

Definition at line 544 of file sigscale.cc.

Referenced by convert_to_display_units().

545  {
546  double MPa;
547 
548  if ( volts < 0.1 )
549  // clip value to -2.7MPa if out of range e.g.sensor faulty
550  return -2.7000 ;
551 
552  else if ( volts > 1.8 )
553  // clip value to 42.000MPa if out of range e.g.sensor unplugged
554  return 42.000 ;
555 
556  MPa = (volts - 0.1996) * 25.90715 ;
557 
558  //Should there be an error condition??
559  //if ( x <= -1.0 || x >= 1.0 ) x = 0 ; /* error condition */
560  return MPa;
561  } // double convert_v_to_Pres_MPa_0_20684(double volts)
Here is the caller graph for this function: