Waveform filter programs

◆ convert_v_to_Pres_KPa_0_17236()

double DDAS3::convert_v_to_Pres_KPa_0_17236 ( double  volts)

Definition at line 440 of file sigscale.cc.

Referenced by convert_to_display_units().

441  {
442  double KPa;
443 
444  if ( volts < 0.1 )
445  // clip value to -2700KPa if out of range e.g.sensor faulty
446  return -2700.0 ;
447 
448  else if ( volts > 1.8 )
449  // clip value to 42000KPa if out of range e.g.sensor unplugged
450  return 42000 ;
451 
452  KPa = (volts - 0.1996) * 21589.295 ;
453 
454  //Should there be an error condition??
455  //if ( x <= -1.0 || x >= 1.0 ) x = 0 ; /* error condition */
456  return KPa;
457  } // double convert_v_to_Pres_KPa_0_17236(double volts)
Here is the caller graph for this function: