Ignore:
Timestamp:
Nov 25, 1999, 3:05:04 PM (26 years ago)
Author:
ansari
Message:

archediab 29

Location:
trunk/Poubelle/archediab.old/archediab.sources/c
Files:
2 added
11 edited

Legend:

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

    r649 r651  
    339339//  -------------     block type 8 : block_bolo   ------------------    ------------
    340340//-----------------------------------------------------------------------------------------     
     341#define  temps_UT(block)        (8.0609925+0.00011673636*(double)(block))
     342
    341343void    traite_block_bolo(block_type_bolo*      blk)
    342344{
     
    354356//printf("numblock=%d  sec=%d \n",num_block_local,secondes);
    355357ecritD(fenetre_controle,con_time,"%d",secondes);
     358ecritD(fenetre_controle,con_time,"%6.3f",temps_UT(num_block_local));
    356359
    357360nb_coups= gg->reglage.horloge.nb_mesures/2 - gg->reglage.horloge.temp_mort;
  • trunk/Poubelle/archediab.old/archediab.sources/c/auto.c

    r643 r651  
    22#include "bolo.h"
    33#include "auto.h"
     4#include "arcunit.h"
    45#include "tm.h"
    56
  • trunk/Poubelle/archediab.old/archediab.sources/c/corel.c

    r649 r651  
    11#include "diabolo.h"
    22#include "corel.h"
     3#include "arcunit.h"
    34
    45/*
  • trunk/Poubelle/archediab.old/archediab.sources/c/courbeVI.c

    r639 r651  
    44#include "courbeVI.h"
    55#include "fenetres_diabolo.h"
     6#include "arcunit.h"
    67
    78int voie_bit;           // octet contenant dans chaque bit le flag qui dit si on equiloibre cette voie
  • trunk/Poubelle/archediab.old/archediab.sources/c/diabolo.c

    r649 r651  
    4646//flag=alerte(3,"   Archeops ou Planck  \r\r acquisition avec carte PCI ??"); // vaut 1 pour acquisition PCI
    4747//flag=2;       // en mode simulation
    48 if(clavier(touche_alt) ) flag=2; else flag=1;           // en mode acquisition
     48flag=2;
     49if(clavier(touche_alt) ) flag=1;                                        // en mode acquisition
    4950if(clavier(touche_controle) ) flag=4;                           // avec emission des telecommandes au demarrage
    5051if(clavier(touche_alt) && clavier(touche_controle) ) {
     
    5455#endif
    5556
    56 
     57//alerte(1,"on a flag=%d ",flag);
    5758
    5859init_struct(flag);
     
    7172nouveautypefichier('DIA2',exec_DIA2);
    7273nouveautypefichier('ARCH',exec_ARCH);
     74nouveautypefichier('TEXT',exec_ARCH);
    7375
    7476//nouveautypefichier('TEXT',exec_DIA2);
  • trunk/Poubelle/archediab.old/archediab.sources/c/dilution.c

    r649 r651  
    22#include "dilution.h"
    33#include "controle.h"
     4#include "arcunit.h"
    45
    56
  • trunk/Poubelle/archediab.old/archediab.sources/c/fichier_archeops.c

    r637 r651  
    151151                        {
    152152#ifdef _archeops
    153                         ouvre('ACTI',0,10,"lit_fichier_arch",exec_lit_fichier_ARCH,(void*)fen);
     153                        ouvre('ACTI',0,1,"lit_fichier_arch",exec_lit_fichier_ARCH,(void*)fen);
    154154#else
    155155                        printf(" ne peut pas relire les fichiers archeops \n");
  • trunk/Poubelle/archediab.old/archediab.sources/c/fichier_relit_ARCH.c

    r637 r651  
    2121        {
    2222        case ouverture  :       printf("\nlecture du fichier %s  \n",titre(fich));
     23                                        {
     24                                        char cc[12];
     25                                        litF(fich,12,cc);
     26                                        printf("debut fich= %x %x %x %x %x %x %x %x \n",cc[0],cc[1],cc[2],cc[3],cc[4],cc[5],cc[6],cc[7]);
     27                                        }
    2328                                pos=0;
     29                                select(fen);
    2430                                break;
    2531
     
    3036        case tache_de_fond :
    3137
    32                         if (  (pos+12) >  longueur(fich) )
    33                                 {
    34                                 printf("fin du fichier \n");
    35                                 ferme(fen);
     38                        {
     39                        int u;
     40                        int nn,nb,ll;
     41                        def_nom_block
     42                               
     43                        nn=0;
     44                        do      {
     45                               
     46                                if (  (pos+12) >  longueur(fich) )
     47                                        {
     48                                        printf("fin du fichier \n");
     49                                        ferme(fen);nn=-1;nb=0;
     50                                        }
     51                                else    {
     52
     53                                        position(fich,pos);
     54                                        litF(fich,sizeof(block_type_modele),&bkt);
     55                                        type=type_block(&bkt);
     56                                        ll=longueur_block(&bkt);
     57                                        if( (ll<16) ou (ll>50000) ) {pos+=4;printf(" erreur longueur ");nn=-1;nb=0;}
     58                                        else    {
     59                                                pos+=ll;
     60                                                printf("block %d  :  %s \n",numero_block(&bkt),nom_block[type]);
     61                                                if(!nn) nn=numero_block(&bkt);
     62                                                u=tt->tm.pos_ecrit;
     63                                                tt->tm.btm[u].tmtrx=bkt;
     64                                                u++; if(u>=longueur_table_tm) u=0;
     65                                                tt->tm.pos_ecrit=u;
     66                                                nb=numero_block(&bkt);
     67                                                }
     68                                        }
    3669                                }
    37 
    38                         else
    39                                 {
    40                                 int u;
    41                                 def_nom_block
    42                                
    43                                 position(fich,pos);
    44                                 litF(fich,sizeof(block_type_modele),&bkt);
    45                                 type=type_block(&bkt);
    46                                 pos+=longueur_block(&bkt);
    47                                 printf("block %d  :  %s \n",numero_block(&bkt),nom_block[type]);
    48                                
    49                                 u=tt->tm.pos_ecrit;
    50                                 tt->tm.btm[u].tmtrx=bkt;
    51                                 u++; if(u>=longueur_table_tm) u=0;
    52                                 tt->tm.pos_ecrit=u;
    53                                 }
     70                        while(nb==nn);
     71                        }
    5472
    5573                        break;
  • trunk/Poubelle/archediab.old/archediab.sources/c/fichier_relit_DIA2.c

    r637 r651  
    22#include "fichier.h"
    33#include "bolo.h"
     4#include "arcunit.h"
    45
    56
  • trunk/Poubelle/archediab.old/archediab.sources/c/mesures_bolo.c

    r649 r651  
    11#include "diabolo.h"
    22#include "bolo.h"
     3#include "arcunit.h"
    34
    45//*********  coefficients  pour  les  mesures  bolo    ***************************************************
  • trunk/Poubelle/archediab.old/archediab.sources/c/telecommande.c

    r649 r651  
    253253                                if(ss[16]!='7') erreur("adresse not equal to 7");
    254254                                if(ss[25]!='7') erreur("adresse not equal to 7");
    255                                 while( (TickCount()>t) et (TickCount()<(t+60*15)) )     // 15sec
     255/*                              while( (TickCount()>t) et (TickCount()<(t+60*15)) )     // 15sec
    256256                                        {
    257257                                        static int q;
     
    261261                                        controlemanip(0);
    262262                                        }
    263                                 son(133);
     263*/                              son(133);
    264264
    265265                                printf(" envoi de la telecommande : %s \n",ss);
     
    267267                                t=TickCount();                  //  10 secondes  (tick = 1/60 sec)
    268268                                }
    269 /*                      else    {
    270                                 tc_char(0x11);  //  synchro
    271                                 tc_int(debut_telecommande);
    272                                 for(j=0;j<8;j++)        tc_char(mot[j]);
    273                                 tc_int(fin_telecommande);
    274                                 tc_char(0x00);tc_char(0x00);    //  synchro
    275                                 }
    276 */
    277269                        break;
    278270
Note: See TracChangeset for help on using the changeset viewer.