Changeset 651 in Sophya for trunk/Poubelle/archediab.old/archediab.sources/c
- Timestamp:
- Nov 25, 1999, 3:05:04 PM (26 years ago)
- 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 339 339 // ------------- block type 8 : block_bolo ------------------ ------------ 340 340 //----------------------------------------------------------------------------------------- 341 #define temps_UT(block) (8.0609925+0.00011673636*(double)(block)) 342 341 343 void traite_block_bolo(block_type_bolo* blk) 342 344 { … … 354 356 //printf("numblock=%d sec=%d \n",num_block_local,secondes); 355 357 ecritD(fenetre_controle,con_time,"%d",secondes); 358 ecritD(fenetre_controle,con_time,"%6.3f",temps_UT(num_block_local)); 356 359 357 360 nb_coups= gg->reglage.horloge.nb_mesures/2 - gg->reglage.horloge.temp_mort; -
trunk/Poubelle/archediab.old/archediab.sources/c/auto.c
r643 r651 2 2 #include "bolo.h" 3 3 #include "auto.h" 4 #include "arcunit.h" 4 5 #include "tm.h" 5 6 -
trunk/Poubelle/archediab.old/archediab.sources/c/corel.c
r649 r651 1 1 #include "diabolo.h" 2 2 #include "corel.h" 3 #include "arcunit.h" 3 4 4 5 /* -
trunk/Poubelle/archediab.old/archediab.sources/c/courbeVI.c
r639 r651 4 4 #include "courbeVI.h" 5 5 #include "fenetres_diabolo.h" 6 #include "arcunit.h" 6 7 7 8 int 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 46 46 //flag=alerte(3," Archeops ou Planck \r\r acquisition avec carte PCI ??"); // vaut 1 pour acquisition PCI 47 47 //flag=2; // en mode simulation 48 if(clavier(touche_alt) ) flag=2; else flag=1; // en mode acquisition 48 flag=2; 49 if(clavier(touche_alt) ) flag=1; // en mode acquisition 49 50 if(clavier(touche_controle) ) flag=4; // avec emission des telecommandes au demarrage 50 51 if(clavier(touche_alt) && clavier(touche_controle) ) { … … 54 55 #endif 55 56 56 57 //alerte(1,"on a flag=%d ",flag); 57 58 58 59 init_struct(flag); … … 71 72 nouveautypefichier('DIA2',exec_DIA2); 72 73 nouveautypefichier('ARCH',exec_ARCH); 74 nouveautypefichier('TEXT',exec_ARCH); 73 75 74 76 //nouveautypefichier('TEXT',exec_DIA2); -
trunk/Poubelle/archediab.old/archediab.sources/c/dilution.c
r649 r651 2 2 #include "dilution.h" 3 3 #include "controle.h" 4 #include "arcunit.h" 4 5 5 6 -
trunk/Poubelle/archediab.old/archediab.sources/c/fichier_archeops.c
r637 r651 151 151 { 152 152 #ifdef _archeops 153 ouvre('ACTI',0,1 0,"lit_fichier_arch",exec_lit_fichier_ARCH,(void*)fen);153 ouvre('ACTI',0,1,"lit_fichier_arch",exec_lit_fichier_ARCH,(void*)fen); 154 154 #else 155 155 printf(" ne peut pas relire les fichiers archeops \n"); -
trunk/Poubelle/archediab.old/archediab.sources/c/fichier_relit_ARCH.c
r637 r651 21 21 { 22 22 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 } 23 28 pos=0; 29 select(fen); 24 30 break; 25 31 … … 30 36 case tache_de_fond : 31 37 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 } 36 69 } 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 } 54 72 55 73 break; -
trunk/Poubelle/archediab.old/archediab.sources/c/fichier_relit_DIA2.c
r637 r651 2 2 #include "fichier.h" 3 3 #include "bolo.h" 4 #include "arcunit.h" 4 5 5 6 -
trunk/Poubelle/archediab.old/archediab.sources/c/mesures_bolo.c
r649 r651 1 1 #include "diabolo.h" 2 2 #include "bolo.h" 3 #include "arcunit.h" 3 4 4 5 //********* coefficients pour les mesures bolo *************************************************** -
trunk/Poubelle/archediab.old/archediab.sources/c/telecommande.c
r649 r651 253 253 if(ss[16]!='7') erreur("adresse not equal to 7"); 254 254 if(ss[25]!='7') erreur("adresse not equal to 7"); 255 while( (TickCount()>t) et (TickCount()<(t+60*15)) ) // 15sec255 /* while( (TickCount()>t) et (TickCount()<(t+60*15)) ) // 15sec 256 256 { 257 257 static int q; … … 261 261 controlemanip(0); 262 262 } 263 son(133);263 */ son(133); 264 264 265 265 printf(" envoi de la telecommande : %s \n",ss); … … 267 267 t=TickCount(); // 10 secondes (tick = 1/60 sec) 268 268 } 269 /* else {270 tc_char(0x11); // synchro271 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); // synchro275 }276 */277 269 break; 278 270
Note:
See TracChangeset
for help on using the changeset viewer.