Ignore:
Timestamp:
02/03/07 14:17:41 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc

    r8207 r8293  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.59 2006-11-02 17:44:09 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.60 2007-02-03 14:16:12 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    176176    if (sat0<=0)
    177177        return 0;
     178    if (sat0==1)
     179        return sig[0]>maxcont/2 ? 0 : 0.5;
     180
     181    if (sig[p]>sig[p+1] || sig[p+1]>sig[p+2])
     182        return sat[p+1]>maxcont/2 ? sat0-1 : sat0-0.5;
    178183
    179184    // Find the place at which the signal is maxcont/2
Note: See TracChangeset for help on using the changeset viewer.