Waveform filter programs

◆ convert_v_to_Pres_KPa_0_3447()

double DDAS3::convert_v_to_Pres_KPa_0_3447 ( double  volts)

Definition at line 336 of file sigscale.cc.

Referenced by convert_to_display_units().

337  {
338  double KPa;
339 
340  if ( volts < 0.1 )
341  // clip value to -450KPa if out of range e.g.sensor faulty
342  return -450.0 ;
343 
344  else if ( volts > 1.8 )
345  // clip value to 7000KPa if out of range e.g.sensor unplugged
346  return 7000 ;
347 
348  KPa = (volts - 0.1996) * 4317.8590 ;
349 
350  //Should there be an error condition??
351  //if ( x <= -1.0 || x >= 1.0 ) x = 0 ; /* error condition */
352  return KPa;
353  } // double convert_v_to_Pres_KPa_0_3447(double volts)
Here is the caller graph for this function: