Ignore:
Timestamp:
Nov 25, 1999, 2:56:34 PM (26 years ago)
Author:
ansari
Message:

archediab 28 vol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archediab.old/archediab.sources/c/trace_tout.c

    r639 r649  
    55#include "trace_tout.h"
    66#include "synchro.h"
    7 
    8 
    97
    108
     
    3836                                                graph->xpas=50;
    3937                                                graph->taille_graduations=8;
    40                                                         for(j=0;j<nb_max_bolo;j++)  SS->f1[j]=0;
    41                                                         for(j=0;j<nb_max_bolo;j++)  SS->f2[j]=0;
    42                                                         for(j=0;j<nb_max_bolo;j++)  SS->y[j]=0;
     38                                                        for(j=0;j<nb_max_trace;j++)  SS->f1[j]=0;
     39                                                        for(j=0;j<nb_max_trace;j++)  SS->f2[j]=0;
     40                                                        for(j=0;j<nb_max_trace;j++)  SS->y[j]=0;
    4341                                                       
    4442                                       
     
    5250                                        SS->fmini=litD(fen,t_fmini,0L);
    5351                                                SS->fmaxi=litD(fen,t_fmaxi,0L);
    54                                                 for(j=0;j<nb_max_bolo;j++)  SS->f1[j]=0;
     52                                                for(j=0;j<nb_max_trace;j++)  SS->f1[j]=0;
    5553
    5654                                                        c1=2*3.14*SS->fmini*gg->periode_echantillonage;         c1=c1/(1+c1);   
     
    7674                                        {
    7775                                        SS->bolo_couleur[i]=litD(fen,t_bolo_couleur+i,0L)-1;
    78                                         if( (SS->bolo_couleur[i]<1) ou (SS->bolo_couleur[i]>nb_max_bolo) )   SS->bolo_couleur[i]=0;
     76                                        if( (SS->bolo_couleur[i]<1) ou (SS->bolo_couleur[i]>nb_max_trace) )   SS->bolo_couleur[i]=0;
    7977                                        printf(" i=%d bolo=%d    ",i,SS->bolo_couleur[i]);
    8078                                        }
     
    9593                                                        c2=2*3.14*SS->fmaxi*gg->periode_echantillonage; if(c2>0)        c2=c2/(1+c2);   
    9694                                                       
    97                                                 for(j=0;j<nb_max_bolo;j++)             
     95                                                for(j=0;j<nb_max_trace;j++)             
    9896                                                        {
    9997                                                        SS->f1[j]= (1-c1) * SS->f1[j]   + c1 * xbol(j);
     
    105103                                                                {
    106104                                                                SS->ipas=SS->moyenne;
    107                                                                 if(SS->moyenne) for(j=0;j<nb_max_bolo;j++) SS->y[j]=SS->y[j]/(double)SS->moyenne;
     105                                                                if(SS->moyenne) for(j=0;j<nb_max_trace;j++) SS->y[j]=SS->y[j]/(double)SS->moyenne;
    108106//                                                              printf("trace_tout  un  point \n");
    109107
     
    118116        }
    119117
    120                                                                 montracen_tout(fen,nb_max_bolo,x,SS);
     118                                                                montracen_tout(fen,nb_max_trace,x,SS);
    121119
    122120
     
    129127                                                                                        }
    130128
    131                                                                 for(j=0;j<nb_max_bolo;j++) SS->y[j]=0;
     129                                                                for(j=0;j<nb_max_trace;j++) SS->y[j]=0;
    132130                                                                }
    133131                               
     
    144142for(i=0;i<max_couleur;i++)
    145143        {
    146         if( (SS->bolo_couleur[i]>=1) && (SS->bolo_couleur[i]<nb_max_bolo+1) )   yy[i]=SS->y[SS->bolo_couleur[i]-1];
     144        if( (SS->bolo_couleur[i]>=1) && (SS->bolo_couleur[i]<nb_max_trace+1) )  yy[i]=SS->y[SS->bolo_couleur[i]-1];
    147145                else            yy[i]=0;
    148146        }
Note: See TracChangeset for help on using the changeset viewer.