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

archediab 25

File:
1 edited

Legend:

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

    r637 r639  
    1919int  i,j;
    2020double x,c1,c2;
     21static int scan_tt;
    2122util_trace_tout *SS;
    2223SS=infos(fen)->util;
     
    9192
    9293    case tache_de_fond          :       selectgra(fen);
    93                                                
    94                                                         c1=2*3.14*SS->fmini*gg->periode_echantillonage;         c1=c1/(1+c1);   
    95                                                         c2=2*3.14*SS->fmaxi*gg->periode_echantillonage;         c2=c2/(1+c2);   
     94                                                        c1=2*3.14*SS->fmini*gg->periode_echantillonage; if(c1>0)        c1=c1/(1+c1);   
     95                                                        c2=2*3.14*SS->fmaxi*gg->periode_echantillonage; if(c2>0)        c2=c2/(1+c2);   
    9696                                                       
    9797                                                for(j=0;j<nb_max_bolo;j++)             
     
    105105                                                                {
    106106                                                                SS->ipas=SS->moyenne;
    107                                                                 for(j=0;j<nb_max_bolo;j++) SS->y[j]=SS->y[j]/(double)SS->moyenne;
    108                                                                 printf("trace_tout  un  point \n");
    109                                                                
    110 //                                                              SS->[nb_max_bolo]=(0.95*graph->ymin+0.05*graph->ymax) +
    111 //                                                                      +  ( (gg->don.sync[sync_subscan]!=0) et (gg->don.sync[sync_scan]!=0) )
    112 //                                                                              * 0.9 * (graph->ymax-graph->ymin);
     107                                                                if(SS->moyenne) for(j=0;j<nb_max_bolo;j++) SS->y[j]=SS->y[j]/(double)SS->moyenne;
     108//                                                              printf("trace_tout  un  point \n");
    113109
    114110                                                                x=gg->periode_echantillonage*(double)gg->temps_cntl-gg->temps_origine;
    115 //                                                              printf("x=%g  x0=%g  \n",x,x0);
    116                                                                 //if(x<0) {x0=gg->periode_echantillonage*(double)gg->temps_cntl;x=0;}
     111                                                               
     112if(scan_tt != ( (gg->don.sync[sync_subscan]!=0) et (gg->don.sync[sync_scan]!=0) ) )
     113        {
     114        if(scan_tt)     rectangle(fen,x,graph->ymin,x,graph->ymax,rouge);               // trace le segment x1,y1 - x2,y2               
     115          else  rectangle(fen,x,graph->ymin,x,graph->ymax,bleu);                // trace le segment x1,y1 - x2,y2               
    117116
     117        scan_tt = ( (gg->don.sync[sync_subscan]!=0) et (gg->don.sync[sync_scan]!=0) ) ;
     118        }
    118119
    119                                                                 montracen_tout(fen,nb_max_bolo,x,SS);   // SANS LA SYNCHRO
    120 //                                                              montracen(fen,nb_max_bolo+1,x,SS->y);   // avec la synchro
     120                                                                montracen_tout(fen,nb_max_bolo,x,SS);
    121121
    122122
     
    144144for(i=0;i<max_couleur;i++)
    145145        {
    146         if(SS->bolo_couleur[i]) yy[i]=SS->y[SS->bolo_couleur[i]-1];
     146        if( (SS->bolo_couleur[i]>=1) && (SS->bolo_couleur[i]<nb_max_bolo+1) )   yy[i]=SS->y[SS->bolo_couleur[i]-1];
    147147                else            yy[i]=0;
    148148        }
Note: See TracChangeset for help on using the changeset viewer.