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

archediab 29

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archediab.old/archeops.h

    r649 r651  
    390390/*  ---------   structures N° 2 :  reglage_bolo , regul etc..   --------        */
    391391/*  ------------------------------------------------------------------------------------------  */
    392 #define bol_micro_volt(val,gain)        ((1e7*(double)val)/(65536.*gain))
    393 /*  avec  gain = (double)parametr.bolo[bolo].bolo_gain*gain_ampli(reglage.bolo[bolo])                           */
    394                
    395 
    396 /* gains 0 .. 15 pour MLPA  ///   gain 16..19  pour BEBO   ///   gain 20..22  pour BEDIF        */             
    397 #define def_gains       double gains_reels[32]={1,2,4,8,10,20,40,80,100,200,400,800,1000,2000,4000,8000,0.5,2.5,10,50,0.93,3.777,18.974};
    398                 /*                      gain bediff    10->9.3    40->37.77     200->189.74             */
    399392
    400393
    401394/*  les definitions suivantes s'appliquent a une variable de type    reglage.bolo[bol]          */
    402395#define         gainbrut(aa)    ((char)(((aa).mot1&0x1f)))             
    403 #define         gain_ampli(aa)  gains_reels[gainbrut(aa)]               
    404396#define         phase(aa)       ((char)(((aa).mot1&0x60)>>5))           
    405397#define         comm(aa)        ((char)(((aa).mot1&0x80)>>7))           
     
    585577
    586578
    587 /*      signification des bit lus dans switch_dil       */
    588 #define switch_EVF              0x00000080      /*      contact fin de course vanne fermee      */
    589 #define switch_EVO              0x00000040      /*      contact fin de course vanne ouverte     */
    590 
    591 /* les bit suivants sont envoyés par telecommande et relus dans switch_dil      */
    592 #define switch_helium           0x00200000      /*  13: commande sond niveau helium     */
    593 #define switch_pile_par_5       0x00100000      /*  12: mise en parallele des piles pour le 5V  */
    594 #define switch_pile_par_15      0x00080000      /*  11: mise en parallele des piles pour le 15V */
    595 #define vanne_EVB               0x00008000      /*  7: commande vanne brooks    */
    596 #define vanne_EVO               0x00010000      /*  8: commande vanne EVO       */
    597 #define vanne_EVV               0x00020000      /*  9: commande vanne EVV       */
    598 #define vanne_EVF               0x00040000      /*  10: commande vanne EVF      */
    599 #define chauffage1              0x00004000      /*  6: chauffage 1      */
    600 #define chauffage2              0x00002000      /*  5: chauffage 1      */
    601 #define chauffage3              0x00001000      /*  4: chauffage 1      */
    602 #define chauffage4              0x00000800      /*  3: chauffage 1      */
    603 #define chauffage5              0x00000400      /*  2: chauffage 1      */
    604 #define chauffage6              0x00000200      /*  1: chauffage 1      */
    605 #define chauffage7              0x00000100      /*  0: chauffage 7      */
    606 
    607 enum{nbit_chauffage7,nbit_chauffage6,nbit_chauffage5,nbit_chauffage4,nbit_chauffage3
    608         ,nbit_chauffage2,nbit_chauffage1,nbit_vanne_EVB,nbit_vanne_EVO
    609         ,nbit_vanne_EVV,nbit_vanne_EVF,nbit_switch_pile_par_15,nbit_switch_pile_par_5,nbit_switch_helium};
    610 
    611 /*  position des mesures sur les multiplexeurs          */
    612 /* J10A  ->  temperatures basses t_b1 t_b2,t_b3 t_b4 36 37 41 35        */
    613 /* J10B  ->  temperatures basses t_a1 t_a2,t_a3 t_a4 38 11 34 28        */
    614 /* J1??  ->  temperatures hautes t_h1 t_h2,t_h3 t_h4    */
    615 
    616 enum{
    617 /* multiplex11..18:*/   t_a2    ,mul12_ ,p_haut ,p_memb ,t_h1   ,t_h4   ,t_h3   ,t_h2   
    618 /* multiplex21..28:*/,  mul21_  ,mul22  ,p_charb,p_R4   ,mul25_ ,p_C3   ,p_R3   ,t_a4   
    619 /* multiplex31..38:*/,  mul31_  ,p_C4   ,p_air  ,t_a3   ,t_b4   ,t_b1   ,t_b2   ,t_a1   
    620 /* multiplex41..48:*/,  t_b3    ,d_4He  ,RP_He  ,t_pile ,d_3He  ,j_he3  ,j_he7  ,j_he4 
    621 /* multiplex51..58:*/,  j_he5   ,j_he1  ,j_he8  ,j_he2  ,j_he6  ,pirani ,mul57  ,mul58 
    622 /* multiplex61..68:*/,  p_m18B  ,p_10B  ,p_m18D ,mul64  ,p_p18B ,p_10T  ,p_Ch   ,p_p18D         
    623         };
    624 /* reste libres :  mul   12 - 21 - 22 - 25 -  31 - 44 - 57 - 58 - 64    */
    625 /* T_A1 EST AUSSI LE DRIVER DU MOTEUR DE PIVOT   */
    626 
    627 #define  val_multiplex(qq)      (0.0003052*(double)((qq)-0x8000))       
    628 #define  val_temperature(qq)    ((val_multiplex(qq)<0.2)?-99:((1146.3/(val_multiplex(qq)-0.1)) - 245.13))
    629 
    630 
    631579/*  ---------------------   structures N° 4 :     gps           ------------------------------- */
    632580/*  ------------------------------------------------------------------------------------------- */
Note: See TracChangeset for help on using the changeset viewer.