Changeset 399 in Sophya


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

bug

Location:
trunk/Poubelle/archTOI.old
Files:
2 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.;
  • trunk/Poubelle/archTOI.old/ssthandler.cc

    r397 r399  
    207207                }
    208208                else {
    209                         pPiste->push(Diodedata);
     209                        pPiste->push(Diodedata,Pousslong);
    210210                        offseDataDiod+=Pousslong;
    211211                }
     
    232232                        }
    233233                // Est-on en bout de Piste?
    234                         if(offseDataDiod+Pousslong>=NbSampleBlock) break;
    235                         else {
    236                                 pPiste->push(Diodedata+offseDataDiod);
    237                                 offseDataDiod+=Pousslong;
    238                         }
     234                    int npouss = Pousslong;
     235                    if (offseDataDiod+npouss > NbSampleBlock) npouss = NbSampleBlock-offseDataDiod;
     236                    if (npouss<=0) break;
     237                        pPiste->push(Diodedata+offseDataDiod,npouss);
     238                        offseDataDiod+=npouss;
    239239                }
    240240        }
Note: See TracChangeset for help on using the changeset viewer.