Changeset 657 in Sophya for trunk/Poubelle/archediab.old/archeops.c
- Timestamp:
- Nov 25, 1999, 4:58:46 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archediab.old/archeops.c
r652 r657 1 2 1 3 2 #include "manip.h" 4 5 3 #include "archeops.h" 6 4 7 8 9 5 /* sauve vol trapani 2eme config de vol */ 10 6 11 12 13 7 /********** coefficients pour les mesures bolo **********************************/ 14 15 8 /* toutes les puissances en pW */ 16 17 9 /* -1- loi de reponse thermique des bolos avec R en ohms et T en Kelvin */ 18 19 10 /* */ 20 21 11 /* T = coef2 * ( ln ( R / coef1) ** ( -1 / coef0 ) */ 22 23 12 /* */ 24 25 13 /* -2- fuite thermique du bolo coef 3,4 */ 26 27 14 /* */ 28 29 15 /* Ptot = coef3 * ( (10*Tb) ** coef4 - (10*Tcryo) ** coef4 ) */ 30 31 16 /* */ 32 33 17 /* -3- calcul empirique de Pciel et de tau coef 5,6 */ 34 35 18 /* */ 36 37 19 /* Pciel = coef5 - Pelec coef5= I * Ai (tables xavier) */ 38 39 20 /* tau = - ln ( 1 + Pciel / coef6 ) coef6= I * Bi (tables xavier) */ 40 41 21 /* */ 42 43 22 /* Pour les thermometres 1 à 4 (germanium et carbone Allan-Bradley) */ 44 45 23 /* les coefficients sont utilisés differemment, ils permettent de convertir */ 46 47 24 /* R vers T ( c(6) est un offset sur la mesure de R par rapport aux mesures 4 fils)*/ 48 49 25 /* llR= log(log(R - c(6))-c(0)) */ 50 51 26 /* T = exp(c(1) + c(2)* llR + c(3)* llR* llR + c(4)* llR* llR* llR + */ 52 53 27 /* c(5)* llR* llR* llR* llR) */ 54 55 28 /* */ 56 57 29 /* version vol Trapani */ 58 59 30 /* on corrige le biais de temperature coef2=1.1 old, coef3=old/1.1^coef4 */ 60 61 31 /* */ 62 63 32 /* */ 64 65 33 /* */ 66 67 34 /* */ 68 69 35 /* */ 70 71 36 /****************************************************************************************/ 72 37 73 38 74 75 76 77 39 /**************************************************************************************/ 78 79 40 /* */ 80 81 41 /* pour les MLPA : gain = 100 diviseur = 101 ou 330 */ 82 83 42 /* pour les bebodiff : gain = diviseur = 100Kohm / R preampli */ 84 85 43 /* pour les bebodiff : la capa est corrigee d'un facteur 0.868 */ 86 87 44 /* pour les cartes modifiees : mettre diviseur=0 */ 88 89 45 /* et capa = la resistance de chage en Megohm */ 90 91 46 /* */ 92 93 47 /**************************************************************************************/ 94 48 95 49 96 97 98 99 50 /* numero_nom, on/off , 0 = MLPA , N° bolo , gain_pa , capa*1000 , diviseur , coef*10000 */ 100 101 51 /* , 0 ou 1 , 2..8 = BEBO , hard , , 4700 , 333 , */ 102 103 52 /* 10 = Bediff , , , */ 104 53 105 106 107 54 /* pour les bediff (code 10) le n° de bolo est N° de bebo*8 + numero dans la bebo */ 108 109 55 /* soit : 1 2 3 4 5 6 .. 9 10 11 12 13 14 .. 17 18 19 20 21 22 .. etc */ 110 56 111 57 112 113 114 115 58 /*debut_param*/ 116 117 59 /*---------------------------------- fenetre : -----------------------------------*/ 118 60 119 120 121 61 /* ------------------------ configuration de vol 5 juillet 99-----------------------------*/ 122 123 62 /* ---------------------- modifié les indices de bolo le 15 septembre 1999-------------------*/ 124 125 param_bolo parametr={29,24,36,88,18, 126 127 63 /* contient au debut : numero_version,n_max_bolo,n_per_block,n_max_mes_per,nb_bolo */ 64 65 66 param_bolo parametr={29,36,36,88,0, 67 68 /* dans l'ordre : */ 69 /* 1- numero des caracteristiques du bolo */ 70 /* 2- transmission du bolo (normal = 7) (non transmis = 5) (thermo = 9) */ 71 /* 3- 10 = bebo differentielle */ 72 /* 4- numero de la voie de commande (8*n°bebo + N° dans la bebo) */ 73 /* 5- gain du preamplificateur */ 74 /* 6- capacite de modulation (en fF) */ 75 /* 7- diviseur pour la modulation */ 128 76 129 77 { 130 131 { 11 , 2,10, 1 , 200, 22000 , 200 }, /* 0 */ 132 133 { 9 , 1,10, 2 , 200, 22000 , 200 }, 134 135 { 8 , 1,10, 3 , 200, 22000 , 200 }, 136 137 { 14 , 2,10, 4 , 200, 22000 , 200 }, 138 139 140 141 { 5 , 1,10, 5 ,1000, 4700 , 1000 }, /* 4 */ 142 143 { 0 , 2,10, 6 ,1000, 4700 , 1000 }, 144 145 { 10 , 1,10, 9 ,1000, 4700 , 1000 }, 146 147 { 0 , 2,10,10, 1000, 4700 , 1000 }, 148 149 150 151 { 2 , 1,10,11, 1000, 4700 , 1000 }, /* 8 */ 152 153 { 4 , 1,10,12, 1000, 4700 , 1000 }, 154 155 { 7 , 2,10,13, 1000, 4700 , 1000 }, 156 157 { 1 , 1,10,14, 1000, 4700 , 1000 }, 158 159 160 161 { 13 , 1,10,17, 1000, 4700 , 1000 }, /* 12 */ 162 163 { 3 , 1,10,18, 1000, 4700 , 1000 }, 164 78 { 11 , 5,10, 1 , 200, 22000 , 200 }, /* 0 */ 79 { 9 , 7,10, 2 , 200, 22000 , 200 }, 80 { 8 , 7,10, 3 , 200, 22000 , 200 }, 81 { 14 , 5,10, 4 , 200, 22000 , 200 }, 82 83 { 5 , 7,10, 5 ,1000, 4700 , 1000 }, /* 4 */ 84 { 0 , 5,10, 6 ,1000, 4700 , 1000 }, 85 { 10 , 7,10, 9 ,1000, 4700 , 1000 }, 86 { 0 , 5,10,10, 1000, 4700 , 1000 }, 87 88 { 2 , 7,10,11, 1000, 4700 , 1000 }, /* 8 */ 89 { 4 , 7,10,12, 1000, 4700 , 1000 }, 90 { 7 , 5,10,13, 1000, 4700 , 1000 }, 91 { 1 , 7,10,14, 1000, 4700 , 1000 }, 92 93 { 13 , 7,10,17, 1000, 4700 , 1000 }, /* 12 */ 94 { 3 , 7,10,18, 1000, 4700 , 1000 }, 165 95 { 12 , 1,10,19, 1000, 4700 , 1000 }, 166 167 { 6 , 1,10,20, 1000, 4700 , 1000 }, 168 169 170 171 { 15 , 1,10,21, 200, 22000 , 200 }, /* 16 */ 172 173 { 16 , 1,10,22, 200, 22000 , 200 }, 174 175 { 17 , 1,10,25, 500, 22000 , 500 }, 176 177 { 18 , 2,10,26, 500, 22000 , 500 }, 178 179 180 181 { 20 , 3,10,27, 1000, 22000 , 0 }, /* 20 */ 182 183 { 21 , 3,10,28, 1000, 1000 , 0 }, 184 185 { 22 , 3,10,29, 1000, 1000 , 0 }, 186 187 { 23 , 3,10,30, 1000, 1000 , 0 }, 188 189 190 191 { 0 , 3,10,30, 1000, 1000 , 0 }, /* 24 */ 192 193 { 0 , 3,10,30, 1000, 1000 , 0 }, 194 195 { 0 , 3,10,30, 1000, 1000 , 0 }, 196 197 { 0 , 3,10,30, 1000, 1000 , 0 }, 198 199 200 201 { 0 , 3,10,30, 1000, 1000 , 0 }, /* 28 */ 202 203 { 0 , 3,10,30, 1000, 1000 , 0 }, 204 205 { 0 , 3,10,30, 1000, 1000 , 0 }, 206 207 { 0 , 3,10,30, 1000, 1000 , 0 }, 208 209 210 211 { 0 , 3,10,30, 1000, 1000 , 0 }, /* 32 */ 212 213 { 0 , 3,10,30, 1000, 1000 , 0 }, 214 215 { 0 , 3,10,30, 1000, 1000 , 0 }, 216 217 { 0 , 3,10,30, 1000, 1000 , 0 }, 218 219 96 { 6 , 7,10,20, 1000, 4700 , 1000 }, 97 98 { 15 , 7,10,21, 200, 22000 , 200 }, /* 16 */ 99 { 16 , 7,10,22, 200, 22000 , 200 }, 100 { 17 , 7,10,25, 500, 22000 , 500 }, 101 { 18 , 5,10,26, 500, 22000 , 500 }, 102 103 { 20 , 9,10,27, 1000, 22000 , 0 }, /* 20 */ 104 { 21 , 9,10,28, 1000, 1000 , 0 }, 105 { 22 , 9,10,29, 1000, 1000 , 0 }, 106 { 23 , 9,10,30, 1000, 1000 , 0 }, 107 108 { 0 , 0,10,30, 1000, 1000 , 0 }, /* 24 */ 109 { 0 , 0,10,30, 1000, 1000 , 0 }, 110 { 0 , 0,10,30, 1000, 1000 , 0 }, 111 { 0 , 0,10,30, 1000, 1000 , 0 }, 112 113 { 0 , 0,10,30, 1000, 1000 , 0 }, /* 28 */ 114 { 0 , 0,10,30, 1000, 1000 , 0 }, 115 { 0 , 0,10,30, 1000, 1000 , 0 }, 116 { 0 , 0,10,30, 1000, 1000 , 0 }, 117 118 { 0 , 0,10,30, 1000, 1000 , 0 }, /* 32 */ 119 { 0 , 0,10,30, 1000, 1000 , 0 }, 120 { 0 , 0,10,30, 1000, 1000 , 0 }, 121 { 0 , 0,10,30, 1000, 1000 , 0 }, 220 122 221 123 }, 222 223 124 { 224 225 125 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, /* 0 */ 226 227 126 { "ch1-bolo1" , { 5000 , 600000 , 154000, 63039, 25000, 0, 0} }, /* 1 */ 228 229 127 { "ch1-bolo2" , { 5000 , 600000 , 154000, 47279, 25000, 0, 0} }, 230 231 128 { "ch1-bolo3" , { 5000 , 600000 , 154000, 51219, 25000, 0, 0} }, 232 233 129 { "ch2-bolo4" , { 5000 , 600000 , 154000, 70919, 25000, 0, 0} }, 234 235 130 { "ch2-bolo5" , { 5000 , 600000 , 154000, 78799, 25000, 0, 0} }, 236 237 131 { "ch3-bolo6" , { 5000 , 600000 , 154000, 86678, 25000, 0, 0} }, 238 132 239 240 241 133 { "Dum100mK1" , { 5000 , 588000 , 125000, 0,0,0,0} }, /* 7 */ 242 243 134 { "Dum100mK2" , { 5000 , 588000 , 125000, 0,0,0,0} }, 244 245 135 /*{ "Dum100mK3" , { 5000 , 1361800 , 125000, 0,0,0,0} }, */ 246 247 136 { "Dum100mK4" , { 5000 , 1361800 , 125000, 0,0,0,0} }, /* 9 */ 248 249 137 /*{ "Dum100mK5" , { 5000 , 1361800 , 125000, 0,0,0,0} }, */ 250 251 138 { "Dum100mK6" , { 5000 , 1361800 , 125000, 0,0,0,0} }, 252 139 253 254 255 140 { "Lou100mK1" , { 5000 , 5680000 , 560000, 0,0,0,0} }, /* 11 */ 256 257 141 { "Lou100mK2" , { 5000 , 5680000 , 560000, 0,0,0,0} }, 258 259 142 { "Lou100mK3" , { 5000 , 5680000 , 560000, 0,0,0,0} }, 260 261 143 { "Lou100mK4" , { 5000 , 5680000 , 560000, 0,0,0,0} }, 262 144 263 264 265 145 { "Lou1.6K5 " , { 5000 , 0 , 0, 0,0,0,0} }, /* 15 */ 266 267 146 { "Lou1.6K6 " , { 5000 , 0 , 0, 0,0,0,0} }, 268 269 147 { "Lou10K7 " , { 5000 , 0 , 0, 0,0,0,0} }, 270 271 148 { "Lou10K8 " , { 5000 , 0 , 0, 0,0,0,0} }, 272 149 273 274 275 150 { "R10MOhm " , { 5000 , 0 , 0, 0,0,0,0} }, /* 19 */ 276 151 277 278 279 152 /* La germanium doit toujours etre en premier par rapport aux autres thermos absolus */ 280 281 153 { "germanium" , { 0 , 30719 , -910 , -16389 , 2927 , 0, 0} }, /* 20 */ 282 283 154 { "therm_4k" , { 45000 , 28907 , -16028 , -1327 , 1472 , 872, 52500} }, 284 285 155 { "therm_1.6k" , { 45000 , 28907 , -16028 , -1327 , 1472 , 872, 566700} }, 286 287 156 { "therm_10k" , { 45000 , 28907 , -16028 , -1327 , 1472 , 872, 138100} }, 288 157 289 290 291 158 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, /* 24 */ 292 293 159 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 294 295 160 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 296 297 161 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 298 162 299 300 301 163 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, /* 28 */ 302 303 164 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 304 305 165 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 306 307 166 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 308 167 309 310 311 168 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, /* 32 */ 312 313 169 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 314 315 170 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 316 317 171 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 318 172 319 320 321 173 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, /* 36 */ 322 323 174 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 324 325 175 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 326 327 176 { "Niente " , { 5000 , 0 , 0, 0,0,0,0} }, 328 177 329 330 331 178 } 332 179 333 334 335 180 }; 336 337 181 /*fin_param*/ 338 182 339 340 341 183 /* Definition Mai-Juin 1999 342 343 184 { 344 345 185 { "v1-bedif1" , 1,10,1 , 200, 22000 , 200, { 5000 , 123100 , 334200,0,0,0,0} }, 346 347 186 { "v1-bedif2" , 1,10,2 , 200, 22000 , 200, { 500 , 136180 , 9010,0,0,0,0} }, 348 349 187 { "v1-bedif3" , 1,10,3 , 200, 22000 , 200, { 500 , 136180 , 9010,0,0,0,0} }, 350 351 188 { "v1-bedif4" , 1,10,4 , 200, 22000 , 200, { 5000 , 123100 , 334200,0,0,0,0} }, 352 353 189 { "v1-bedif5" , 1,10,5 , 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 354 355 190 { "v1-bedif6" , 1,10,6 , 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 356 191 357 358 359 192 { "v1-bedif7" , 1,10,9 , 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 360 361 193 { "v1-bedif8" , 1,10,10, 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 362 363 194 { "v1-bedif9" , 1,10,11, 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 364 365 195 { "v1-bedif10" , 1,10,12, 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 366 367 196 { "v1-bedif11" , 1,10,13, 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 368 369 197 { "v1-bedif12" , 1,10,14, 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 370 198 371 372 373 199 { "v1-bedif13" , 1,10,17, 1000, 100000 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 374 375 200 { "v1-bedif14" , 1,10,18, 1000, 470000 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 376 377 201 { "bedif15" , 1,10,19, 1000, 470000 , 1000, { 500 , 58800 , 12500,0,0,0,0} }, 378 379 202 { "bedif16" , 1,10,20, 1000,2200000 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 380 381 203 { "bedif17" , 1,10,21, 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 382 383 204 { "bedif18" , 1,10,22, 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 384 205 385 386 387 206 { "v1-bedif19" , 2,10,25, 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 388 389 207 { "v1-bedif20" , 2,10,26, 1000, 4700 , 1000, { 5000 , 123100 , 334200,0,0,0,0} }, 390 391 208 { "germanium" , 3,10,27, 1000, 22000 , 0, { 3500 , 17100 , 646500,0,0,0,0} }, 392 393 209 { "therm_4k" , 3,10,28, 1000, 1000 , 0, {12000 ,1804000 , 72800,0,0,0,0} }, 394 395 210 { "therm_1.6k" , 3,10,29, 1000, 1000 , 0, {12000 ,1804000 , 72800,0,0,0,0} }, 396 397 211 { "therm_10k" , 3,10,30, 1000, 1000 , 0, {12000 ,1804000 , 72800,0,0,0,0} }, 398 212 399 400 401 213 }*/ 402 214 403 404 405 215 /* bolos campagne 1998-1999 */ 406 407 216 /* 408 409 217 reg_NbSi.J, 1, 0, 1, 100, 4.7, 333, .5 ,519.6 , 8.286 410 411 218 v1-231...L, 1, 0, 2, 100, 4.7, 333, .5 , 1.7 , 32.41 , 0.333 , 10 , 20.30 , 11.41 412 413 219 v1-232...N, 1, 0, 3, 100, 4.7, 333, 414 415 220 v1-237...E, 1, 0, 4, 100, 4.7, 333, 416 221 417 418 419 222 reg_JamieO, 1, 0, 5, 100, 4.7, 101, 420 223 421 422 423 224 V2-NbSi..H, 1, 0, 6, 100, 4.7, 101, .5 ,433.8 , 9.25 424 425 225 V2-230...B, 1, 0, 7, 100, 4.7, 333, .5 , 8.26 , 26.61 , 5.10 , 7 , 9.354 , 1.026 426 427 226 V2-205...Q, 1, 0, 8, 100, 4.7, 333, .518 , 81 , 25.2 428 429 227 V2-208...P, 1, 0, 9, 100, 4.7, 333, .5 , 12.31 , 33.42 , 0.627 , 6.5 , 8.113 , 2.958 430 228 431 432 433 229 */ 434 435 230 /*bolos campagne 1997-1998 */ 436 437 231 /* 438 232 439 440 441 233 v1-208...J, 1, 0, 1, 100, 4.7, 333, .5 , 12.31 , 33.42 442 443 234 v1-232...L, 1, 0, 2, 100, 4.7, 333, 444 445 235 v1-205...N, 1, 0, 3, 100, 4.7, 333, .518 , 81 , 25.2 446 447 236 v1-NbSi..E, 1, 0, 4, 100, 4.7, 333, .5 ,519.6 , 8.286 448 449 237 Jamie....O, 1, 0, 5, 100, 4.7, 101, 450 451 238 V2-NbSi..H, 1, 0, 6, 100, 4.7, 101, .5 ,433.8 , 9.25 452 453 239 V2-224...B, 1, 0, 7, 100, 4.7, 333, .5 ,3.43 , 26.6 454 455 240 V2-230...Q, 1, 0, 8, 100, 4.7, 333, .5 , 8.26 , 26.61 456 457 241 V2-231...P, 1, 0, 9, 100, 4.7, 333, .5 , 1.7 , 32.41 458 242 459 460 461 243 */ 462 244 463 245 464 465 466 467 246 int mode_transmission_telemesure[nb_modes_telemesure][nb_type_blocks]= { 468 247 469 470 471 248 /* enregisteur de bord flash : plafond standard nominal */ 472 473 249 /* 0*/ { 0,10,15,50, 10,50, 0, 0, 0, 1, 0, 0, 1, 0, 1,2500, 0, 0, 0, 0}, 474 250 475 476 477 251 /* 1*/ { 0,10,10, 1, 10, 3, 0, 0, 0, 1, 0, 0, 1, 0, 4,2500, 0, 0, 0, 0}, 478 252 479 480 481 253 /* 2*/ { 0,10,05,01, 10,06, 0, 0, 0, 1, 0, 0, 1, 0, 2,2500, 0, 0, 0, 0}, 482 254 483 484 485 255 /* 3*/ { 0,10, 1,25, 10, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0,2500, 0, 0, 0, 0}, 486 256 487 488 489 257 /* 4*/ { 0,10,15,50, 10,25, 0, 0, 1, 0, 0, 0, 0, 0, 0,2500, 0, 0, 0, 0}, 490 258 491 492 493 259 /* 5*/ { 0,10,15,50, 10,25, 0, 0, 0, 0, 1, 0, 0, 0, 0,2500, 0, 0, 0, 0}, 494 260 495 496 497 261 /* 6*/ { 0,10,15,50, 10,50, 0, 0, 0, 1, 0, 0, 1, 0, 2,2500, 0, 0, 0, 0}, 498 262 499 500 501 263 /* 7*/ { 0,10,15,50,100,50, 1, 1, 0, 1, 0, 0, 1, 0, 1,2500, 0, 0, 0, 0}, 502 264 503 504 505 265 /* 8*/ { 0,10,15,50,100,50, 1, 1, 1, 0, 0, 0, 0, 0, 0,2500, 0, 0, 0, 0}, 506 266 507 508 509 267 /* 9*/ { 0,10, 1, 1,100, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0,2500, 0, 0, 0, 0} 510 268 511 512 513 269 }; 514 270 515 271 516 272 517 518 519 520 521 273 int mode_transmission_flash[nb_modes_flash][nb_type_blocks]= { 522 274 523 275 524 525 526 527 276 /* enregisteur de bord flash : nominal */ 528 529 277 /* 0*/ { 0,50,15,25, 10,25, 0, 0, 0, 1, 0, 0, 1, 0, 1,2500, 0, 0, 0, 0} , 530 278 531 532 533 279 /* enregisteur de bord flash : minimum */ 534 535 280 /* 1*/ { 0,50,50,50,50,100, 0, 0, 0, 0, 0, 0, 0, 0, 0,2500, 0, 0, 0, 0} , 536 281 537 538 539 282 /* enregisteur de bord flash : rien */ 540 541 283 /* 2*/ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} }; 542 284 … … 544 286 545 287 546 547 548 549 550 551 288 /*debut_nom_reglage*/ 552 553 289 /* 0->1 - demarrage par defaut - Nominal*/ 554 555 290 /* 1->2 - idem*/ 556 557 291 /* 2->3 - faible courant*/ 558 559 292 /* 3->4 - fort courant*/ 560 561 293 /* 4->5 - non fffdéfini*/ 562 563 294 /* 5->6 - non défini*/ 564 565 295 /* 6->7 - non défini*/ 566 567 296 /* 7->8 - non défini*/ 568 569 297 /*fin_nom_reglage*/ 570 298 … … 600 328 601 329 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 330 reglage_bolo reglage_standard[8]={{ 636 331 637 332 638 639 640 641 333 /*debut reglage 0 */ 642 643 334 #ifdef programme 644 645 335 {32,76,8,1},{ 646 647 336 {20,0} 648 649 337 ,{1311522837,256000} 650 651 338 ,{1048576021,256004} 652 653 ,{20,0} 654 339 ,{20,0} 655 340 ,{1048576021,256001} 656 657 ,{20,0} 658 341 ,{20,0} 659 342 ,{262144021,128003} 660 661 ,{20,0} 662 663 ,{262144021,128001} 664 665 ,{262144021,128001} 666 667 ,{20,0} 668 343 ,{20,0} 344 ,{262144021,128001} 345 ,{262144021,128001} 346 ,{20,0} 669 347 ,{1048576021,256257} 670 671 348 ,{1048576021,256003} 672 673 ,{262144021,128001} 674 349 ,{262144021,128001} 675 350 ,{262144789,128001} 676 677 ,{262144021,128001} 678 351 ,{262144021,128001} 679 352 ,{100663317,256002} 680 681 353 ,{100716053,155650} 682 683 354 ,{1048576277,256003} 684 685 ,{20,0} 686 355 ,{20,0} 687 356 ,{1024021,0} 688 689 357 ,{262165,0} 690 691 ,{65557,0} 692 358 ,{65557,0} 693 359 ,{1024020,0} 694 695 },{ 696 360 },{ 697 361 {1,21,16,4} 698 699 362 ,{1,21,13,4} 700 701 363 ,{1,21,20,4} 702 703 364 ,{1,21,20,4} 704 705 365 ,{0,21,0,4} 706 707 366 ,{0,21,0,4} 708 709 },{ 710 367 },{ 711 368 {3,1,21,24,21,24,0} 712 713 ,{0,1,9,1,0,0,0} 714 715 ,{0,1,9,1,0,0,0} 716 369 ,{0,1,9,1,0,0,0} 370 ,{0,1,9,1,0,0,0} 717 371 ,{6,1,9,34,30,0,65326} 718 719 372 },{5,3,129,108,0,126,104,88} 720 721 373 #else 722 723 374 {1,8,76,32},{ 724 725 375 {20,0} 726 727 376 ,{1311522837,256000} 728 729 377 ,{1048576021,256004} 730 731 ,{20,0} 732 378 ,{20,0} 733 379 ,{1048576021,256001} 734 735 ,{20,0} 736 380 ,{20,0} 737 381 ,{262144021,128003} 738 739 ,{20,0} 740 741 ,{262144021,128001} 742 743 ,{262144021,128001} 744 745 ,{20,0} 746 382 ,{20,0} 383 ,{262144021,128001} 384 ,{262144021,128001} 385 ,{20,0} 747 386 ,{1048576021,256257} 748 749 387 ,{1048576021,256003} 750 751 ,{262144021,128001} 752 388 ,{262144021,128001} 753 389 ,{262144789,128001} 754 755 ,{262144021,128001} 756 390 ,{262144021,128001} 757 391 ,{100663317,256002} 758 759 392 ,{100716053,155650} 760 761 393 ,{1048576277,256003} 762 763 ,{20,0} 764 394 ,{20,0} 765 395 ,{1024021,0} 766 767 396 ,{262165,0} 768 769 ,{65557,0} 770 397 ,{65557,0} 771 398 ,{1024020,0} 772 773 },{ 774 399 },{ 775 400 {4,16,21,1} 776 777 401 ,{4,13,21,1} 778 779 402 ,{4,20,21,1} 780 781 403 ,{4,20,21,1} 782 783 404 ,{4,0,21,0} 784 785 405 ,{4,0,21,0} 786 787 },{ 788 406 },{ 789 407 {24,21,1,3,0,24,21} 790 791 ,{1,9,1,0,0,0,0} 792 793 ,{1,9,1,0,0,0,0} 794 408 ,{1,9,1,0,0,0,0} 409 ,{1,9,1,0,0,0,0} 795 410 ,{34,9,1,6,65326,0,30} 796 797 411 },{108,129,3,5,88,104,126,0} 798 799 412 #endif 800 801 413 /*fin_reglage*/ 802 414 803 415 804 805 806 807 },{ 808 809 416 },{ 810 417 811 418 /*debut reglage 1 */ 812 813 419 #ifdef programme 814 815 420 {32,76,8,1},{ 816 817 421 {20,0} 818 819 422 ,{1311522837,256000} 820 821 423 ,{1048576021,256004} 822 823 ,{20,0} 824 424 ,{20,0} 825 425 ,{1048576021,256001} 826 827 ,{20,0} 828 426 ,{20,0} 829 427 ,{262144021,128003} 830 831 ,{20,0} 832 833 ,{262144021,128001} 834 835 ,{262144021,128001} 836 837 ,{20,0} 838 428 ,{20,0} 429 ,{262144021,128001} 430 ,{262144021,128001} 431 ,{20,0} 839 432 ,{1048576021,256257} 840 841 433 ,{1048576021,256003} 842 843 ,{262144021,128001} 844 434 ,{262144021,128001} 845 435 ,{262144789,128001} 846 847 ,{262144021,128001} 848 436 ,{262144021,128001} 849 437 ,{100663317,256002} 850 851 438 ,{100716053,155650} 852 853 439 ,{1048576277,256003} 854 855 ,{20,0} 856 440 ,{20,0} 857 441 ,{1024021,0} 858 859 442 ,{262165,0} 860 861 ,{65557,0} 862 443 ,{65557,0} 863 444 ,{1024020,0} 864 865 },{ 866 445 },{ 867 446 {1,21,16,4} 868 869 447 ,{1,21,13,4} 870 871 448 ,{1,21,20,4} 872 873 449 ,{1,21,20,4} 874 875 450 ,{0,21,0,4} 876 877 451 ,{0,21,0,4} 878 879 },{ 880 452 },{ 881 453 {3,1,21,24,21,24,0} 882 883 ,{0,1,9,1,0,0,0} 884 885 ,{0,1,9,1,0,0,0} 886 454 ,{0,1,9,1,0,0,0} 455 ,{0,1,9,1,0,0,0} 887 456 ,{6,1,9,34,30,0,65326} 888 889 457 },{5,3,129,108,0,126,104,88} 890 891 458 #else 892 893 459 {1,8,76,32},{ 894 895 460 {20,0} 896 897 461 ,{1311522837,256000} 898 899 462 ,{1048576021,256004} 900 901 ,{20,0} 902 463 ,{20,0} 903 464 ,{1048576021,256001} 904 905 ,{20,0} 906 465 ,{20,0} 907 466 ,{262144021,128003} 908 909 ,{20,0} 910 911 ,{262144021,128001} 912 913 ,{262144021,128001} 914 915 ,{20,0} 916 467 ,{20,0} 468 ,{262144021,128001} 469 ,{262144021,128001} 470 ,{20,0} 917 471 ,{1048576021,256257} 918 919 472 ,{1048576021,256003} 920 921 ,{262144021,128001} 922 473 ,{262144021,128001} 923 474 ,{262144789,128001} 924 925 ,{262144021,128001} 926 475 ,{262144021,128001} 927 476 ,{100663317,256002} 928 929 477 ,{100716053,155650} 930 931 478 ,{1048576277,256003} 932 933 ,{20,0} 934 479 ,{20,0} 935 480 ,{1024021,0} 936 937 481 ,{262165,0} 938 939 ,{65557,0} 940 482 ,{65557,0} 941 483 ,{1024020,0} 942 943 },{ 944 484 },{ 945 485 {4,16,21,1} 946 947 486 ,{4,13,21,1} 948 949 487 ,{4,20,21,1} 950 951 488 ,{4,20,21,1} 952 953 489 ,{4,0,21,0} 954 955 490 ,{4,0,21,0} 956 957 },{ 958 491 },{ 959 492 {24,21,1,3,0,24,21} 960 961 ,{1,9,1,0,0,0,0} 962 963 ,{1,9,1,0,0,0,0} 964 493 ,{1,9,1,0,0,0,0} 494 ,{1,9,1,0,0,0,0} 965 495 ,{34,9,1,6,65326,0,30} 966 967 496 },{108,129,3,5,88,104,126,0} 968 969 497 #endif 970 971 498 /*fin_reglage*/ 972 499 973 974 975 },{ 976 977 500 },{ 978 501 979 502 /*debut reglage 2 */ 980 981 503 #ifdef programme 982 983 504 {32,76,8,1},{ 984 985 505 {20,0} 986 987 506 ,{100721941,256000} 988 989 507 ,{1048607509,256004} 990 991 ,{20,0} 992 508 ,{20,0} 993 509 ,{1048586773,256003} 994 995 ,{20,0} 996 510 ,{20,0} 997 511 ,{50335509,128001} 998 999 ,{20,0} 1000 512 ,{20,0} 1001 513 ,{50331669,128001} 1002 1003 514 ,{50336789,128001} 1004 1005 ,{20,0} 1006 515 ,{20,0} 1007 516 ,{1048622101,256259} 1008 1009 517 ,{1048635413,256003} 1010 1011 518 ,{50331669,128001} 1012 1013 519 ,{50352661,128001} 1014 1015 520 ,{50337813,128001} 1016 1017 521 ,{100665109,256002} 1018 1019 522 ,{100664597,155650} 1020 1021 523 ,{1048600341,256003} 1022 1023 ,{20,0} 1024 524 ,{20,0} 1025 525 ,{1024021,0} 1026 1027 ,{65557,0} 1028 1029 ,{65557,0} 1030 526 ,{65557,0} 527 ,{65557,0} 1031 528 ,{262165,0} 1032 1033 },{ 1034 529 },{ 1035 530 {1,21,11,4} 1036 1037 531 ,{1,21,13,4} 1038 1039 532 ,{1,21,20,4} 1040 1041 533 ,{1,21,20,4} 1042 1043 534 ,{0,20,0,1} 1044 1045 535 ,{0,20,0,1} 1046 1047 },{ 1048 536 },{ 1049 537 {3,1,21,24,21,24,0} 1050 1051 ,{0,1,9,1,0,0,0} 1052 1053 ,{0,1,9,1,0,0,0} 1054 538 ,{0,1,9,1,0,0,0} 539 ,{0,1,9,1,0,0,0} 1055 540 ,{6,17,0,34,30,0,65386} 1056 1057 541 },{5,3,129,108,0,126,104,88} 1058 1059 542 #else 1060 1061 543 {1,8,76,32},{ 1062 1063 544 {20,0} 1064 1065 545 ,{100721941,256000} 1066 1067 546 ,{1048607509,256004} 1068 1069 ,{20,0} 1070 547 ,{20,0} 1071 548 ,{1048586773,256003} 1072 1073 ,{20,0} 1074 549 ,{20,0} 1075 550 ,{50335509,128001} 1076 1077 ,{20,0} 1078 551 ,{20,0} 1079 552 ,{50331669,128001} 1080 1081 553 ,{50336789,128001} 1082 1083 ,{20,0} 1084 554 ,{20,0} 1085 555 ,{1048622101,256259} 1086 1087 556 ,{1048635413,256003} 1088 1089 557 ,{50331669,128001} 1090 1091 558 ,{50352661,128001} 1092 1093 559 ,{50337813,128001} 1094 1095 560 ,{100665109,256002} 1096 1097 561 ,{100664597,155650} 1098 1099 562 ,{1048600341,256003} 1100 1101 ,{20,0} 1102 563 ,{20,0} 1103 564 ,{1024021,0} 1104 1105 ,{65557,0} 1106 1107 ,{65557,0} 1108 565 ,{65557,0} 566 ,{65557,0} 1109 567 ,{262165,0} 1110 1111 },{ 1112 568 },{ 1113 569 {4,11,21,1} 1114 1115 570 ,{4,13,21,1} 1116 1117 571 ,{4,20,21,1} 1118 1119 572 ,{4,20,21,1} 1120 1121 573 ,{1,0,20,0} 1122 1123 574 ,{1,0,20,0} 1124 1125 },{ 1126 575 },{ 1127 576 {24,21,1,3,0,24,21} 1128 1129 ,{1,9,1,0,0,0,0} 1130 1131 ,{1,9,1,0,0,0,0} 1132 577 ,{1,9,1,0,0,0,0} 578 ,{1,9,1,0,0,0,0} 1133 579 ,{34,0,17,6,65386,0,30} 1134 1135 580 },{108,129,3,5,88,104,126,0} 1136 1137 581 #endif 1138 1139 582 /*fin_reglage*/ 1140 583 1141 1142 1143 },{ 1144 1145 584 },{ 1146 585 1147 586 /*debut reglage 3 */ 1148 1149 587 #ifdef programme 1150 1151 588 {32,76,8,1},{ 1152 1153 589 {20,0} 1154 1155 590 ,{100721941,256000} 1156 1157 591 ,{1048607509,256004} 1158 1159 ,{20,0} 1160 592 ,{20,0} 1161 593 ,{1048586773,256003} 1162 1163 ,{20,0} 1164 594 ,{20,0} 1165 595 ,{524291861,128001} 1166 1167 ,{20,0} 1168 596 ,{20,0} 1169 597 ,{524288021,128001} 1170 1171 598 ,{524293141,128001} 1172 1173 ,{20,0} 1174 599 ,{20,0} 1175 600 ,{1048622101,256259} 1176 1177 601 ,{1048635413,256003} 1178 1179 602 ,{524288021,128001} 1180 1181 603 ,{524309013,128001} 1182 1183 604 ,{524294165,128001} 1184 1185 605 ,{100665109,256002} 1186 1187 606 ,{100664597,155650} 1188 1189 607 ,{1048600341,256003} 1190 1191 ,{20,0} 1192 608 ,{20,0} 1193 609 ,{1024021,0} 1194 1195 ,{65557,0} 1196 1197 ,{65557,0} 1198 1199 ,{65557,0} 1200 1201 },{ 1202 610 ,{65557,0} 611 ,{65557,0} 612 ,{65557,0} 613 },{ 1203 614 {1,21,18,4} 1204 1205 615 ,{1,21,13,4} 1206 1207 616 ,{1,21,20,4} 1208 1209 617 ,{1,21,20,4} 1210 1211 618 ,{0,20,0,1} 1212 1213 619 ,{0,20,0,1} 1214 1215 },{ 1216 620 },{ 1217 621 {3,1,21,24,21,24,0} 1218 1219 ,{0,1,9,1,0,0,0} 1220 1221 ,{0,1,9,1,0,0,0} 1222 622 ,{0,1,9,1,0,0,0} 623 ,{0,1,9,1,0,0,0} 1223 624 ,{6,17,0,34,30,0,65386} 1224 1225 625 },{5,3,129,108,0,126,104,88} 1226 1227 626 #else 1228 1229 627 {1,8,76,32},{ 1230 1231 628 {20,0} 1232 1233 629 ,{100721941,256000} 1234 1235 630 ,{1048607509,256004} 1236 1237 ,{20,0} 1238 631 ,{20,0} 1239 632 ,{1048586773,256003} 1240 1241 ,{20,0} 1242 633 ,{20,0} 1243 634 ,{524291861,128001} 1244 1245 ,{20,0} 1246 635 ,{20,0} 1247 636 ,{524288021,128001} 1248 1249 637 ,{524293141,128001} 1250 1251 ,{20,0} 1252 638 ,{20,0} 1253 639 ,{1048622101,256259} 1254 1255 640 ,{1048635413,256003} 1256 1257 641 ,{524288021,128001} 1258 1259 642 ,{524309013,128001} 1260 1261 643 ,{524294165,128001} 1262 1263 644 ,{100665109,256002} 1264 1265 645 ,{100664597,155650} 1266 1267 646 ,{1048600341,256003} 1268 1269 ,{20,0} 1270 647 ,{20,0} 1271 648 ,{1024021,0} 1272 1273 ,{65557,0} 1274 1275 ,{65557,0} 1276 1277 ,{65557,0} 1278 1279 },{ 1280 649 ,{65557,0} 650 ,{65557,0} 651 ,{65557,0} 652 },{ 1281 653 {4,18,21,1} 1282 1283 654 ,{4,13,21,1} 1284 1285 655 ,{4,20,21,1} 1286 1287 656 ,{4,20,21,1} 1288 1289 657 ,{1,0,20,0} 1290 1291 658 ,{1,0,20,0} 1292 1293 },{ 1294 659 },{ 1295 660 {24,21,1,3,0,24,21} 1296 1297 ,{1,9,1,0,0,0,0} 1298 1299 ,{1,9,1,0,0,0,0} 1300 661 ,{1,9,1,0,0,0,0} 662 ,{1,9,1,0,0,0,0} 1301 663 ,{34,0,17,6,65386,0,30} 1302 1303 664 },{108,129,3,5,88,104,126,0} 1304 1305 665 #endif 1306 1307 666 /*fin_reglage*/ 1308 667 1309 1310 1311 },{ 1312 1313 668 },{ 1314 669 1315 670 /*debut reglage 4 */ 1316 1317 671 #ifdef programme 1318 1319 672 {39,62,9,1},{ 1320 1321 673 {20,0} 1322 1323 674 ,{-100659180,229382} 1324 1325 675 ,{-100659436,294918} 1326 1327 ,{20,0} 1328 676 ,{20,0} 1329 677 ,{-100663276,221189} 1330 1331 678 ,{-100663276,5} 1332 1333 679 ,{-100659436,245762} 1334 1335 680 ,{-100663276,5} 1336 1337 681 ,{-100658154,245761} 1338 1339 682 ,{-100658156,253954} 1340 1341 ,{20,0} 1342 683 ,{20,0} 1343 684 ,{-100663276,204805} 1344 1345 685 ,{-100663276,16389} 1346 1347 686 ,{-100656874,1} 1348 1349 687 ,{-100656874,16385} 1350 1351 688 ,{-100663276,3} 1352 1353 689 ,{-100506347,6} 1354 1355 690 ,{-100509675,6} 1356 1357 691 ,{-100372972,6} 1358 1359 692 ,{2097174,0} 1360 1361 693 ,{1024022,0} 1362 1363 694 ,{16406,0} 1364 1365 695 ,{4117,0} 1366 1367 696 ,{262164,0} 1368 1369 },{ 1370 697 },{ 1371 698 {2,22,24,1} 1372 1373 699 ,{1,20,24,4} 1374 1375 700 ,{0,20,24,4} 1376 1377 701 ,{0,20,24,3} 1378 1379 702 ,{0,20,24,4} 1380 1381 703 ,{0,20,24,4} 1382 1383 },{ 1384 704 },{ 1385 705 {0,1,9,1,0,0,0} 1386 1387 ,{0,1,9,1,0,0,0} 1388 1389 ,{0,1,9,1,0,0,0} 1390 1391 ,{0,1,9,1,0,0,0} 1392 706 ,{0,1,9,1,0,0,0} 707 ,{0,1,9,1,0,0,0} 708 ,{0,1,9,1,0,0,0} 1393 709 },{2,3,129,108,2,126,104,88} 1394 1395 710 #else 1396 1397 711 {1,9,62,39},{ 1398 1399 712 {20,0} 1400 1401 713 ,{-100659180,229382} 1402 1403 714 ,{-100659436,294918} 1404 1405 ,{20,0} 1406 715 ,{20,0} 1407 716 ,{-100663276,221189} 1408 1409 717 ,{-100663276,5} 1410 1411 718 ,{-100659436,245762} 1412 1413 719 ,{-100663276,5} 1414 1415 720 ,{-100658154,245761} 1416 1417 721 ,{-100658156,253954} 1418 1419 ,{20,0} 1420 722 ,{20,0} 1421 723 ,{-100663276,204805} 1422 1423 724 ,{-100663276,16389} 1424 1425 725 ,{-100656874,1} 1426 1427 726 ,{-100656874,16385} 1428 1429 727 ,{-100663276,3} 1430 1431 728 ,{-100506347,6} 1432 1433 729 ,{-100509675,6} 1434 1435 730 ,{-100372972,6} 1436 1437 731 ,{2097174,0} 1438 1439 732 ,{1024022,0} 1440 1441 733 ,{16406,0} 1442 1443 734 ,{4117,0} 1444 1445 735 ,{262164,0} 1446 1447 },{ 1448 736 },{ 1449 737 {1,24,22,2} 1450 1451 738 ,{4,24,20,1} 1452 1453 739 ,{4,24,20,0} 1454 1455 740 ,{3,24,20,0} 1456 1457 741 ,{4,24,20,0} 1458 1459 742 ,{4,24,20,0} 1460 1461 },{ 1462 743 },{ 1463 744 {1,9,1,0,0,0,0} 1464 1465 ,{1,9,1,0,0,0,0} 1466 1467 ,{1,9,1,0,0,0,0} 1468 1469 ,{1,9,1,0,0,0,0} 1470 745 ,{1,9,1,0,0,0,0} 746 ,{1,9,1,0,0,0,0} 747 ,{1,9,1,0,0,0,0} 1471 748 },{108,129,3,2,88,104,126,2} 1472 1473 749 #endif 1474 1475 750 /*fin_reglage*/ 1476 751 1477 1478 1479 },{ 1480 1481 752 },{ 1482 753 1483 754 /*debut reglage 5 */ 1484 1485 755 #ifdef programme 1486 1487 756 {39,68,9,1},{ 1488 1489 757 {20,0} 1490 1491 758 ,{1048982293,229382} 1492 1493 759 ,{1049128469,253958} 1494 1495 ,{20,0} 1496 760 ,{20,0} 1497 761 ,{1048966677,245765} 1498 1499 ,{20,0} 1500 762 ,{20,0} 1501 763 ,{262157846,245762} 1502 1503 764 ,{1048919829,5} 1504 1505 765 ,{262156054,245761} 1506 1507 766 ,{262154006,253954} 1508 1509 ,{20,0} 1510 767 ,{20,0} 1511 768 ,{1049123349,229381} 1512 1513 769 ,{1049157141,237573} 1514 1515 770 ,{262154262,1} 1516 1517 771 ,{262158614,16385} 1518 1519 772 ,{262149654,3} 1520 1521 773 ,{262750740,237572} 1522 1523 774 ,{262606612,122884} 1524 1525 775 ,{-1174095083,139270} 1526 1527 ,{20,0} 1528 776 ,{20,0} 1529 777 ,{16406,0} 1530 1531 778 ,{16406,0} 1532 1533 779 ,{4117,0} 1534 1535 780 ,{262164,0} 1536 1537 },{ 1538 781 },{ 1539 782 {1,22,16,1} 1540 1541 783 ,{1,22,16,4} 1542 1543 784 ,{1,22,16,4} 1544 1545 785 ,{1,20,16,3} 1546 1547 786 ,{1,21,20,4} 1548 1549 787 ,{1,21,20,4} 1550 1551 },{ 1552 788 },{ 1553 789 {0,1,9,1,0,0,0} 1554 1555 ,{0,1,9,1,0,0,0} 1556 1557 ,{0,1,9,1,0,0,0} 1558 1559 ,{0,1,9,1,0,0,0} 1560 790 ,{0,1,9,1,0,0,0} 791 ,{0,1,9,1,0,0,0} 792 ,{0,1,9,1,0,0,0} 1561 793 },{2,3,129,108,3,126,104,88} 1562 1563 794 #else 1564 1565 795 {1,9,68,39},{ 1566 1567 796 {20,0} 1568 1569 797 ,{1048982293,229382} 1570 1571 798 ,{1049128469,253958} 1572 1573 ,{20,0} 1574 799 ,{20,0} 1575 800 ,{1048966677,245765} 1576 1577 ,{20,0} 1578 801 ,{20,0} 1579 802 ,{262157846,245762} 1580 1581 803 ,{1048919829,5} 1582 1583 804 ,{262156054,245761} 1584 1585 805 ,{262154006,253954} 1586 1587 ,{20,0} 1588 806 ,{20,0} 1589 807 ,{1049123349,229381} 1590 1591 808 ,{1049157141,237573} 1592 1593 809 ,{262154262,1} 1594 1595 810 ,{262158614,16385} 1596 1597 811 ,{262149654,3} 1598 1599 812 ,{262750740,237572} 1600 1601 813 ,{262606612,122884} 1602 1603 814 ,{-1174095083,139270} 1604 1605 ,{20,0} 1606 815 ,{20,0} 1607 816 ,{16406,0} 1608 1609 817 ,{16406,0} 1610 1611 818 ,{4117,0} 1612 1613 819 ,{262164,0} 1614 1615 },{ 1616 820 },{ 1617 821 {1,16,22,1} 1618 1619 822 ,{4,16,22,1} 1620 1621 823 ,{4,16,22,1} 1622 1623 824 ,{3,16,20,1} 1624 1625 825 ,{4,20,21,1} 1626 1627 826 ,{4,20,21,1} 1628 1629 },{ 1630 827 },{ 1631 828 {1,9,1,0,0,0,0} 1632 1633 ,{1,9,1,0,0,0,0} 1634 1635 ,{1,9,1,0,0,0,0} 1636 1637 ,{1,9,1,0,0,0,0} 1638 829 ,{1,9,1,0,0,0,0} 830 ,{1,9,1,0,0,0,0} 831 ,{1,9,1,0,0,0,0} 1639 832 },{108,129,3,2,88,104,126,3} 1640 1641 833 #endif 1642 1643 834 /*fin_reglage*/ 1644 835 1645 1646 1647 },{ 1648 1649 836 },{ 1650 837 1651 838 /*debut reglage 6 */ 1652 1653 839 #ifdef programme 1654 1655 840 {197,191,175,185},{ 1656 1657 841 {0,0} 1658 1659 ,{0,0} 1660 1661 ,{0,0} 1662 1663 ,{0,0} 1664 1665 ,{0,0} 1666 1667 ,{0,0} 1668 1669 ,{0,0} 1670 1671 ,{0,0} 1672 1673 ,{0,0} 1674 1675 ,{0,0} 1676 1677 ,{0,0} 1678 1679 ,{0,0} 1680 1681 ,{0,0} 1682 1683 ,{0,0} 1684 1685 ,{0,0} 1686 1687 ,{0,0} 1688 1689 ,{0,0} 1690 1691 ,{0,0} 1692 1693 ,{0,0} 1694 1695 ,{0,0} 1696 1697 ,{0,0} 1698 1699 ,{0,0} 1700 1701 ,{0,0} 1702 1703 ,{0,0} 1704 1705 },{ 1706 842 ,{0,0} 843 ,{0,0} 844 ,{0,0} 845 ,{0,0} 846 ,{0,0} 847 ,{0,0} 848 ,{0,0} 849 ,{0,0} 850 ,{0,0} 851 ,{0,0} 852 ,{0,0} 853 ,{0,0} 854 ,{0,0} 855 ,{0,0} 856 ,{0,0} 857 ,{0,0} 858 ,{0,0} 859 ,{0,0} 860 ,{0,0} 861 ,{0,0} 862 ,{0,0} 863 ,{0,0} 864 ,{0,0} 865 },{ 1707 866 {106,98,93,71} 1708 1709 867 ,{66,74,87,66} 1710 1711 868 ,{48,46,38,33} 1712 1713 869 ,{40,41,33,26} 1714 1715 870 ,{25,29,40,57} 1716 1717 871 ,{63,62,71,80} 1718 1719 },{ 1720 872 },{ 1721 873 {83,79,75,75,92,112,31100} 1722 1723 874 ,{125,126,117,113,107,94,20315} 1724 1725 875 ,{108,116,122,124,117,120,32117} 1726 1727 876 ,{110,99,94,98,107,93,17217} 1728 1729 877 },{88,82,94,108,111,126,104,88} 1730 1731 878 #else 1732 1733 879 {185,175,191,197},{ 1734 1735 880 {0,0} 1736 1737 ,{0,0} 1738 1739 ,{0,0} 1740 1741 ,{0,0} 1742 1743 ,{0,0} 1744 1745 ,{0,0} 1746 1747 ,{0,0} 1748 1749 ,{0,0} 1750 1751 ,{0,0} 1752 1753 ,{0,0} 1754 1755 ,{0,0} 1756 1757 ,{0,0} 1758 1759 ,{0,0} 1760 1761 ,{0,0} 1762 1763 ,{0,0} 1764 1765 ,{0,0} 1766 1767 ,{0,0} 1768 1769 ,{0,0} 1770 1771 ,{0,0} 1772 1773 ,{0,0} 1774 1775 ,{0,0} 1776 1777 ,{0,0} 1778 1779 ,{0,0} 1780 1781 ,{0,0} 1782 1783 },{ 1784 881 ,{0,0} 882 ,{0,0} 883 ,{0,0} 884 ,{0,0} 885 ,{0,0} 886 ,{0,0} 887 ,{0,0} 888 ,{0,0} 889 ,{0,0} 890 ,{0,0} 891 ,{0,0} 892 ,{0,0} 893 ,{0,0} 894 ,{0,0} 895 ,{0,0} 896 ,{0,0} 897 ,{0,0} 898 ,{0,0} 899 ,{0,0} 900 ,{0,0} 901 ,{0,0} 902 ,{0,0} 903 ,{0,0} 904 },{ 1785 905 {71,93,98,106} 1786 1787 906 ,{66,87,74,66} 1788 1789 907 ,{33,38,46,48} 1790 1791 908 ,{26,33,41,40} 1792 1793 909 ,{57,40,29,25} 1794 1795 910 ,{80,71,62,63} 1796 1797 },{ 1798 911 },{ 1799 912 {75,75,79,83,31100,112,92} 1800 1801 913 ,{113,117,126,125,20315,94,107} 1802 1803 914 ,{124,122,116,108,32117,120,117} 1804 1805 915 ,{98,94,99,110,17217,93,107} 1806 1807 916 },{108,94,82,88,88,104,126,111} 1808 1809 917 #endif 1810 1811 918 /*fin_reglage*/ 1812 919 1813 1814 1815 },{ 1816 1817 920 },{ 1818 921 1819 922 /*debut reglage 7 */ 1820 1821 923 #ifdef programme 1822 1823 924 {197,191,175,185},{ 1824 1825 925 {0,0} 1826 1827 ,{0,0} 1828 1829 ,{0,0} 1830 1831 ,{0,0} 1832 1833 ,{0,0} 1834 1835 ,{0,0} 1836 1837 ,{0,0} 1838 1839 ,{0,0} 1840 1841 ,{0,0} 1842 1843 ,{0,0} 1844 1845 ,{0,0} 1846 1847 ,{0,0} 1848 1849 ,{0,0} 1850 1851 ,{0,0} 1852 1853 ,{0,0} 1854 1855 ,{0,0} 1856 1857 ,{0,0} 1858 1859 ,{0,0} 1860 1861 ,{0,0} 1862 1863 ,{0,0} 1864 1865 ,{0,0} 1866 1867 ,{0,0} 1868 1869 ,{0,0} 1870 1871 ,{0,0} 1872 1873 },{ 1874 926 ,{0,0} 927 ,{0,0} 928 ,{0,0} 929 ,{0,0} 930 ,{0,0} 931 ,{0,0} 932 ,{0,0} 933 ,{0,0} 934 ,{0,0} 935 ,{0,0} 936 ,{0,0} 937 ,{0,0} 938 ,{0,0} 939 ,{0,0} 940 ,{0,0} 941 ,{0,0} 942 ,{0,0} 943 ,{0,0} 944 ,{0,0} 945 ,{0,0} 946 ,{0,0} 947 ,{0,0} 948 ,{0,0} 949 },{ 1875 950 {106,98,93,71} 1876 1877 951 ,{66,74,87,66} 1878 1879 952 ,{48,46,38,33} 1880 1881 953 ,{40,41,33,26} 1882 1883 954 ,{25,29,40,57} 1884 1885 955 ,{63,62,71,80} 1886 1887 },{ 1888 956 },{ 1889 957 {83,79,75,75,92,112,31100} 1890 1891 958 ,{125,126,117,113,107,94,20315} 1892 1893 959 ,{108,116,122,124,117,120,32117} 1894 1895 960 ,{110,99,94,98,107,93,17217} 1896 1897 961 },{88,82,94,108,111,126,104,88} 1898 1899 962 #else 1900 1901 963 {185,175,191,197},{ 1902 1903 964 {0,0} 1904 1905 ,{0,0} 1906 1907 ,{0,0} 1908 1909 ,{0,0} 1910 1911 ,{0,0} 1912 1913 ,{0,0} 1914 1915 ,{0,0} 1916 1917 ,{0,0} 1918 1919 ,{0,0} 1920 1921 ,{0,0} 1922 1923 ,{0,0} 1924 1925 ,{0,0} 1926 1927 ,{0,0} 1928 1929 ,{0,0} 1930 1931 ,{0,0} 1932 1933 ,{0,0} 1934 1935 ,{0,0} 1936 1937 ,{0,0} 1938 1939 ,{0,0} 1940 1941 ,{0,0} 1942 1943 ,{0,0} 1944 1945 ,{0,0} 1946 1947 ,{0,0} 1948 1949 ,{0,0} 1950 1951 },{ 1952 965 ,{0,0} 966 ,{0,0} 967 ,{0,0} 968 ,{0,0} 969 ,{0,0} 970 ,{0,0} 971 ,{0,0} 972 ,{0,0} 973 ,{0,0} 974 ,{0,0} 975 ,{0,0} 976 ,{0,0} 977 ,{0,0} 978 ,{0,0} 979 ,{0,0} 980 ,{0,0} 981 ,{0,0} 982 ,{0,0} 983 ,{0,0} 984 ,{0,0} 985 ,{0,0} 986 ,{0,0} 987 ,{0,0} 988 },{ 1953 989 {71,93,98,106} 1954 1955 990 ,{66,87,74,66} 1956 1957 991 ,{33,38,46,48} 1958 1959 992 ,{26,33,41,40} 1960 1961 993 ,{57,40,29,25} 1962 1963 994 ,{80,71,62,63} 1964 1965 },{ 1966 995 },{ 1967 996 {75,75,79,83,31100,112,92} 1968 1969 997 ,{113,117,126,125,20315,94,107} 1970 1971 998 ,{124,122,116,108,32117,120,117} 1972 1973 999 ,{98,94,99,110,17217,93,107} 1974 1975 1000 },{108,94,82,88,88,104,126,111} 1976 1977 1001 #endif 1978 1979 1002 /*fin_reglage*/ 1980 1003 1981 1982 1983 1004 } }; 1984 1005 … … 1986 1007 1987 1008 1988 1989 1990 1991 1992 1993 1009 int calcul_somme_block(block_type_modele* blk,int longueur) 1994 1995 1010 { 1996 1997 1011 int i,so=0;; 1998 1999 1012 for(i=0;i<(longueur/4-4);i++) so^=(int)blk->mot[i]; 2000 2001 1013 /* somme sur tous les mots internes : on exclus le dbut, les codes et la fin */ 2002 2003 1014 return((so^(so>>16))&0xffff); 2004 2005 1015 } 2006 1016 … … 2008 1018 2009 1019 2010 2011 2012 2013 2014 2015 1020 void valide_block(block_type_modele* blk,int type,int block_num) 2016 2017 1021 { 2018 2019 1022 int somme,longueur; 2020 2021 1023 def_long_block 2022 2023 1024 longueur=long_block[type]; 2024 2025 1025 /*printf("valide block adresse %x type %d numblock %d longueur=%d \n" */ 2026 2027 1026 /* ,(unsigned)blk,type,block_num,longueur);*/ 2028 2029 1027 blk->debut = debut_block_mesure; 2030 2031 1028 somme=0;blk->code1 = (((long)longueur)<<16) | somme; 2032 2033 1029 blk->code2 = (((long)block_num) & 0xffffff ) | ( (((long)type)<<24)&0xff000000 ); 2034 1030 2035 2036 2037 1031 blk->mot[longueur/4-4] = fin_block_mesure; 2038 1032 2039 2040 2041 1033 #if defined(_ECC_LIB_H_) 2042 2043 1034 { 2044 2045 1035 int place_ecc; 2046 2047 1036 place_ecc=(longueur-4-ECC_SIZE-SIZE_HEAD-((longueur-4-SIZE_HEAD)/ECC_TOTAL)*ECC_SIZE)/4; 2048 2049 1037 SetEcc( blk, (unsigned char *) &(blk->mot[place_ecc] ) ) ; 2050 2051 1038 } 2052 2053 1039 #endif 2054 1040 2055 2056 2057 1041 somme=calcul_somme_block(blk,longueur); 2058 2059 1042 blk->code1 = (((long)longueur)<<16) | somme; 2060 2061 1043 /* l'ecc est faux car on a change la somme: mettre la somme a zero avant de tester ecc */ 2062 2063 1044 } 2064 1045 2065 2066 2067 1046 /* Quand on est sur une machine swappee, on ne cherche pas a verifier */ 2068 2069 1047 /* le checksum, puisqu'on a modifie les blocs, sans swapper par exemple */ 2070 2071 1048 /* les chars des noms de bolometres et des chaines GPS... */ 2072 2073 1049 #ifdef __alpha 2074 2075 1050 #define SWAP 2076 2077 1051 #endif 2078 2079 1052 #if defined(Linux) || defined(linux) 2080 2081 1053 #define SWAP 2082 2083 1054 #endif 2084 1055 2085 1056 2086 1057 2087 2088 2089 2090 2091 1058 int verifie_block(block_type_modele* blk) 2092 2093 1059 { 2094 2095 1060 int type,lg,som; 2096 2097 1061 def_long_block 2098 2099 1062 if(blk->debut != debut_block_mesure) return(block_debut_erreur); 2100 2101 1063 type=type_block(blk); if( (type<0) ||(type>=nb_type_blocks) ) return(block_type_inconnu); 2102 2103 1064 lg=longueur_block(blk); if( lg != long_block[type] ) return(block_longueur_erreur); 2104 2105 1065 if( blk->mot[(lg/4)-4] != fin_block_mesure) return(block_fin_erreur); 2106 2107 1066 #ifndef SWAP 2108 2109 1067 som=calcul_somme_block(blk,lg); if( som!= somme_block(blk)) return(block_somme_erreur); 2110 2111 1068 #endif 2112 2113 1069 return(block_correct); 2114 2115 1070 } 2116 1071 2117 1072 2118 2119 2120 2121 1073 int verifie_block_printf(block_type_modele* blk) 2122 2123 1074 { 2124 2125 1075 int type,lg,som; 2126 2127 1076 def_long_block 2128 2129 1077 def_nom_block 2130 2131 1078 if(blk->debut != debut_block_mesure) 2132 2133 1079 { 2134 2135 1080 printf(" erreur dans le code debut de block \n"); 2136 2137 1081 return(block_debut_erreur); 2138 2139 1082 } 2140 1083 2141 2142 2143 1084 type=type_block(blk); 2144 2145 1085 if( (type<0) || (type>nb_type_blocks) ) 2146 2147 1086 { 2148 2149 1087 printf(" block de type %d inconnu\n",type); 2150 2151 1088 return(block_type_inconnu); 2152 2153 1089 } 2154 1090 2155 2156 2157 1091 lg=longueur_block(blk); 2158 2159 1092 if( lg!=long_block[type] ) 2160 2161 1093 { 2162 2163 1094 printf(" block type %s erreur de longueur (nominal=%d , dans le block=%d \n" 2164 2165 1095 ,nom_block[type],long_block[type],lg); 2166 2167 1096 return(block_longueur_erreur); 2168 2169 1097 } 2170 1098 2171 2172 2173 1099 som=calcul_somme_block(blk,lg); 2174 2175 1100 if( som!=somme_block(blk) ) 2176 2177 1101 { 2178 2179 1102 printf(" block type %s : erreur de somme (calculee=%d , dans le block=%d \n" 2180 2181 1103 ,nom_block[type],som,somme_block(blk) ); 2182 2183 1104 return(block_somme_erreur); 2184 2185 1105 } 2186 2187 1106 2188 2189 1107 if(blk->mot[(lg/4)-4] != fin_block_mesure) 2190 2191 1108 { 2192 2193 1109 printf(" block type %s erreur de code fin de block : trouve %x au lieu de %x \n" 2194 2195 1110 ,nom_block[type],(int)blk->mot[(lg/4)-4],fin_block_mesure); 2196 2197 1111 return(block_fin_erreur); 2198 2199 1112 } 2200 1113 2201 2202 2203 1114 return(block_correct); 2204 2205 1115 } 2206 1116 … … 2209 1119 2210 1120 2211 2212 2213 2214 2215 2216
Note:
See TracChangeset
for help on using the changeset viewer.