Waveform filter programs

◆ convert_v_to_FAN16()

double DDAS3::convert_v_to_FAN16 ( double  volts)

Definition at line 579 of file sigscale.cc.

Referenced by convert_to_display_units().

580  {
581  double dFanPercent;
582 
583  if ( volts < 1.6 ) // clip value to 0%
584  return 0 ;
585 
586  else if ( volts > 9.9 ) // clip value to 100%
587  return 100 ;
588 
589  dFanPercent = (volts - 1.6) * 12.04819 ;
590 
591  //Should there be an error condition??
592  //if ( x <= -1.0 || x >= 1.0 ) x = 0 ; /* error condition */
593  return dFanPercent;
594  } // double convert_v_to_FAN16(double volts)
Here is the caller graph for this function: