main.c
72 lines
| 1.8 KiB
| text/x-c
|
CLexer
r17 | // In the frame of RPW LFR Sofware ICD Issue1 Rev8 (05/07/2013) => R2 FSW | |||
r6 | // version 1.O: 31/07/2013 | |||
// version 1.1: 02/04/2014 | ||||
// version 1.2: 30/04/2014 | ||||
r7 | // version 1.3: 02/05/2014 | |||
r12 | // version 1.4: 16/05/2014 | |||
// version 1.5: 20/05/2014 | ||||
r13 | // version 1.6: 19/12/2014 | |||
r15 | // version 1.7: 15/01/2015 (modifs de Paul + correction erreurs qui se compensaient (LSB <=> MSB + indices [0,2] <=> [1,3]) | |||
r17 | // 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 | ||||
r18 | // version 2.1: 22/06/2015 (modifs de Paul) | |||
|
r2 | |||
|
r0 | #include <stdio.h> | ||
r12 | #include "file_utilities.h" | |||
r13 | #include "basic_parameters_utilities.h" | |||
#include "basic_parameters.h" | ||||
|
r0 | |||
int main(void) | ||||
{ | ||||
r5 | const char *filename; | |||
printf("Hello World!\n\n"); | ||||
|
r0 | |||
r6 | #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ | |||
//LSB FIRST | ||||
printf("The multi-byte quantities are laid out in a LSB FIRST (little endian) fashion \n\n"); | ||||
#endif | ||||
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ | ||||
//MSB FIRST | ||||
printf("The multi-byte quantities are laid out in a MSB FIRST (big endian) fashion\n\n"); | ||||
#endif | ||||
r17 | filename="/WIN/Users/chust/DD CHUST/Missions/Solar Orbiter/LFR/Prog C/tests bp Paul/tests7/sm_test2_R3.dat"; | |||
r12 | lecture_file_sm(filename); | |||
|
r0 | |||
r17 | printf("\n"); | |||
r15 | init_k_coefficients(k_coefficients_f0, NB_BINS_COMPRESSED_MATRIX_f0); | |||
init_k_coefficients(k_coefficients_f1, NB_BINS_COMPRESSED_MATRIX_f1); | ||||
init_k_coefficients(k_coefficients_f2, NB_BINS_COMPRESSED_MATRIX_f2); | ||||
r5 | ||||
r17 | printf("\n\n"); | |||
|
r0 | |||
r12 | BP1_set(compressed_spectral_matrix_f0, k_coefficients_f0, NB_BINS_COMPRESSED_MATRIX_f0, LFR_BP1_f0); | |||
r5 | ||||
printf("\n"); | ||||
BP2_set(compressed_spectral_matrix_f0, NB_BINS_COMPRESSED_MATRIX_f0, LFR_BP2_f0); | ||||
|
r0 | |||
return 0; | ||||
} | ||||