Changeset 649 in Sophya for trunk/Poubelle/archediab.old/archediab.sources/c/trace_tout.c
- Timestamp:
- Nov 25, 1999, 2:56:34 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archediab.old/archediab.sources/c/trace_tout.c
r639 r649 5 5 #include "trace_tout.h" 6 6 #include "synchro.h" 7 8 9 7 10 8 … … 38 36 graph->xpas=50; 39 37 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; 43 41 44 42 … … 52 50 SS->fmini=litD(fen,t_fmini,0L); 53 51 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; 55 53 56 54 c1=2*3.14*SS->fmini*gg->periode_echantillonage; c1=c1/(1+c1); … … 76 74 { 77 75 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; 79 77 printf(" i=%d bolo=%d ",i,SS->bolo_couleur[i]); 80 78 } … … 95 93 c2=2*3.14*SS->fmaxi*gg->periode_echantillonage; if(c2>0) c2=c2/(1+c2); 96 94 97 for(j=0;j<nb_max_ bolo;j++)95 for(j=0;j<nb_max_trace;j++) 98 96 { 99 97 SS->f1[j]= (1-c1) * SS->f1[j] + c1 * xbol(j); … … 105 103 { 106 104 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; 108 106 // printf("trace_tout un point \n"); 109 107 … … 118 116 } 119 117 120 montracen_tout(fen,nb_max_ bolo,x,SS);118 montracen_tout(fen,nb_max_trace,x,SS); 121 119 122 120 … … 129 127 } 130 128 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; 132 130 } 133 131 … … 144 142 for(i=0;i<max_couleur;i++) 145 143 { 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]; 147 145 else yy[i]=0; 148 146 }
Note:
See TracChangeset
for help on using the changeset viewer.