@@ -205,23 +205,14 void SM_average( float *averaged_spec_ma | |||
|
205 | 205 | // AVERAGE SPECTRAL MATRIX |
|
206 | 206 | for(i=0; i<TOTAL_SIZE_SM; i++) |
|
207 | 207 | { |
|
208 | // sum = ( (int *) (ring_node_tab[0]->buffer_address) ) [ i ] | |
|
209 | // + ( (int *) (ring_node_tab[1]->buffer_address) ) [ i ] | |
|
210 | // + ( (int *) (ring_node_tab[2]->buffer_address) ) [ i ] | |
|
211 | // + ( (int *) (ring_node_tab[3]->buffer_address) ) [ i ] | |
|
212 | // + ( (int *) (ring_node_tab[4]->buffer_address) ) [ i ] | |
|
213 |
|
|
|
214 | // + ( (int *) (ring_node_tab[6]->buffer_address) ) [ i ] | |
|
215 | // + ( (int *) (ring_node_tab[7]->buffer_address) ) [ i ]; | |
|
216 | ||
|
217 | sum = ( incomingSMIsValid[BYTE_0] * ((int *)(ring_node_tab[NODE_0]->buffer_address) )[ i ] ) | |
|
218 | + ( incomingSMIsValid[BYTE_1] * ((int *)(ring_node_tab[NODE_1]->buffer_address) )[ i ] ) | |
|
219 | + ( incomingSMIsValid[BYTE_2] * ((int *)(ring_node_tab[NODE_2]->buffer_address) )[ i ] ) | |
|
220 | + ( incomingSMIsValid[BYTE_3] * ((int *)(ring_node_tab[NODE_3]->buffer_address) )[ i ] ) | |
|
221 | + ( incomingSMIsValid[BYTE_4] * ((int *)(ring_node_tab[NODE_4]->buffer_address) )[ i ] ) | |
|
222 | + ( incomingSMIsValid[BYTE_5] * ((int *)(ring_node_tab[NODE_5]->buffer_address) )[ i ] ) | |
|
223 | + ( incomingSMIsValid[BYTE_6] * ((int *)(ring_node_tab[NODE_6]->buffer_address) )[ i ] ) | |
|
224 | + ( incomingSMIsValid[BYTE_7] * ((int *)(ring_node_tab[NODE_7]->buffer_address) )[ i ] ); | |
|
208 | sum = INIT_FLOAT; | |
|
209 | for ( k = 0; k < NB_SM_BEFORE_AVF0_F1; k++ ) | |
|
210 | { | |
|
211 | if (incomingSMIsValid[k] == 1) | |
|
212 | { | |
|
213 | sum = sum + ( (int *) (ring_node_tab[0]->buffer_address) ) [ i ] ; | |
|
214 | } | |
|
215 | } | |
|
225 | 216 | |
|
226 | 217 | if ( (nbAverageNORM == 0) && (nbAverageSBM == 0) ) |
|
227 | 218 | { |
@@ -64,8 +64,7 option(FSW_debug_tch "?" OFF) | |||
|
64 | 64 | set(SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE) |
|
65 | 65 | set(SW_VERSION_N2 "1" CACHE STRING "Choose N2 FSW Version." FORCE) |
|
66 | 66 | set(SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE) |
|
67 |
set(SW_VERSION_N4 " |
|
|
68 | ||
|
67 | set(SW_VERSION_N4 "5" CACHE STRING "Choose N4 FSW Version." FORCE) | |
|
69 | 68 | |
|
70 | 69 | if(FSW_verbose) |
|
71 | 70 | add_definitions(-DPRINT_MESSAGES_ON_CONSOLE) |
@@ -153,8 +153,8 rtems_task Init( rtems_task_argument ign | |||
|
153 | 153 | |
|
154 | 154 | vhdlVersion = (unsigned char *) (REGS_ADDR_VHDL_VERSION); |
|
155 | 155 | PRINTF("** VHDL **\n") |
|
156 |
PRINTF1("** %d |
|
|
157 |
PRINTF1("%d |
|
|
156 | PRINTF1("** %d-", vhdlVersion[1]) | |
|
157 | PRINTF1("%d-" , vhdlVersion[2]) | |
|
158 | 158 | PRINTF1("%d **\n", vhdlVersion[3]) |
|
159 | 159 | PRINTF("*************************\n") |
|
160 | 160 | PRINTF("\n\n") |
General Comments 0
You need to be logged in to leave comments.
Login now