Ignore:
Timestamp:
Sep 1, 1999, 6:27:56 PM (26 years ago)
Author:
ansari
Message:

bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/pisteetoile.cc

    r397 r399  
    211211        double* pPiste =PhDiodPiste+Prepulselong-1;
    212212       
    213 // On demande deux échantillons à 2 Vrms
    214         for (int i=-1; i<(PhDiodTabLong-Prepulselong-1); i++, pPiste++) {
     213// On demande deux échantillons à seuilgachette Vrms
     214        for (int i=0; i<(PhDiodTabLong-Prepulselong); i++, pPiste++) {
    215215                if (fabs(*pPiste)>(SeuilGachette*Vrms))
    216216                        if (fabs(*(pPiste+1))>SeuilGachette*Vrms) {
    217217                                gachette=true;
    218                                 iSeuil=Prepulselong+i;
     218                                iSeuil=Prepulselong-1+i;
    219219                                break;
    220220                        }               
     
    274274               
    275275//      On stocke les resultats
    276                 TIndex=indexDebutPiste+Prepulselong+MaxIndex+tmaxfit;
     276                TIndex=indexDebutPiste+MaxIndex+tmaxfit;
    277277                //              cout << "tindex " << TIndex << " " <<indexDebutPiste<<" " <<Prepulselong << " " <<MaxIndex << " " << tmaxfit << "\n";
    278278                X2Min=0.;
Note: See TracChangeset for help on using the changeset viewer.