// In the frame of RPW LFR Sofware ICD Issue1 Rev8 (05/07/2013) => R2 FSW // version 1.0: 31/07/2013 // version 1.1: 02/04/2014 // version 1.2: 30/04/2014 // version 1.3: 02/05/2014 // version 1.4: 16/05/2014 // version 1.5: 20/05/2014 // version 1.6: 19/12/2014 // version 1.7: 15/01/2015 (modifs de Paul + correction erreurs qui se compensaient (LSB <=> MSB + indices [0,2] <=> [1,3]) // version 1.8: 02/02/2015 (gestion des divisions par zéro) // In the frame of RPW LFR Sofware ICD Issue3 Rev6 (27/01/2015) => R3 FSW // version 2.0: 19/06/2015 #include #include #include "basic_parameters_params.h" void init_k_coefficients_f0( float *k_coeff_intercalib, unsigned char nb_binscompressed_matrix ); void init_k_coefficients_f1( float *k_coeff_intercalib, unsigned char nb_binscompressed_matrix ); void init_k_coefficients_f2( float *k_coeff_intercalib, unsigned char nb_binscompressed_matrix ); void init_k_coefficients(float *k_coefficients, unsigned char nb_binscompressed_matrix ) { switch (nb_binscompressed_matrix) { case 11: puts("F0 data: initialization of the intercalibration k-coefficients"); init_k_coefficients_f0(k_coefficients, nb_binscompressed_matrix); break; case 13: puts("F1 data: initialization of the intercalibration k-coefficients"); init_k_coefficients_f1(k_coefficients, nb_binscompressed_matrix); break; case 12: printf("F2 data: initialization of the intercalibration k-coefficients"); init_k_coefficients_f2(k_coefficients, nb_binscompressed_matrix); break; default: puts("there is a problème !!?"); break; } } void init_k_coefficients_f0(float *k_coefficients, unsigned char nb_binscompressed_matrix ) { uint8_t i; // 8 bits unsigned for(i=0; i