@@ -103,6 +103,6 add_definitions(-DSW_VERSION_N2=${SW_VER | |||
|
103 | 103 | add_definitions(-DSW_VERSION_N3=${SW_VERSION_N3}) |
|
104 | 104 | add_definitions(-DSW_VERSION_N4=${SW_VERSION_N4}) |
|
105 | 105 | |
|
106 |
add_executable( |
|
|
107 |
add_test_cppcheck( |
|
|
106 | add_executable(fsw ${SOURCES}) | |
|
107 | add_test_cppcheck(fsw STYLE UNUSED_FUNCTIONS POSSIBLE_ERROR MISSING_INCLUDE) | |
|
108 | 108 |
@@ -295,6 +295,7 int action_update_info(ccsdsTelecommandP | |||
|
295 | 295 | | (bytePosPtr[ BYTE_POS_UPDATE_INFO_PARAMETERS_SET1 ] & 0x1); |
|
296 | 296 | |
|
297 | 297 | // REACTION_WHEELS_FREQUENCY, copy the incoming parameters in the local variable (to be copied in HK packets) |
|
298 | ||
|
298 | 299 | cp_rpw_sc_rw_f_flags = bytePosPtr[ BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW_F_FLAGS ]; |
|
299 | 300 | getReactionWheelsFrequencies( TC ); |
|
300 | 301 | build_sy_lfr_rw_masks(); |
@@ -1121,19 +1121,60 void build_sy_lfr_rw_mask( unsigned int | |||
|
1121 | 1121 | // update the value of the fbins related to reaction wheels frequency filtering |
|
1122 | 1122 | if (maskPtr != NULL) |
|
1123 | 1123 | { |
|
1124 | printf("channel = %d\n", channel); | |
|
1124 | 1125 | for (k = 0; k < 16; k++) |
|
1125 | 1126 | { |
|
1127 | printf("%x ", local_rw_fbins_mask[k]); | |
|
1126 | 1128 | maskPtr[k] = local_rw_fbins_mask[k]; |
|
1127 | 1129 | } |
|
1130 | printf("\n", local_rw_fbins_mask[k]); | |
|
1128 | 1131 | } |
|
1129 | 1132 | } |
|
1130 | 1133 | |
|
1134 | void print_sy_lfr_rw_masks( void ) | |
|
1135 | { | |
|
1136 | int k; | |
|
1137 | ||
|
1138 | printf("cp_rpw_sc_rw1_f1 = %f\n", cp_rpw_sc_rw1_f1); | |
|
1139 | printf("cp_rpw_sc_rw1_f2 = %f\n", cp_rpw_sc_rw1_f2); | |
|
1140 | printf("cp_rpw_sc_rw2_f1 = %f\n", cp_rpw_sc_rw2_f1); | |
|
1141 | printf("cp_rpw_sc_rw2_f2 = %f\n", cp_rpw_sc_rw2_f2); | |
|
1142 | printf("cp_rpw_sc_rw3_f1 = %f\n", cp_rpw_sc_rw3_f1); | |
|
1143 | printf("cp_rpw_sc_rw3_f2 = %f\n", cp_rpw_sc_rw3_f2); | |
|
1144 | printf("cp_rpw_sc_rw4_f1 = %f\n", cp_rpw_sc_rw4_f1); | |
|
1145 | printf("cp_rpw_sc_rw4_f2 = %f\n", cp_rpw_sc_rw4_f2); | |
|
1146 | ||
|
1147 | printf("f0\n"); | |
|
1148 | for (k = 0; k < 16; k++) | |
|
1149 | { | |
|
1150 | printf("%x ", parameter_dump_packet.sy_lfr_rw_mask.fx.f0_word1[k] ); | |
|
1151 | } | |
|
1152 | printf("\n"); | |
|
1153 | ||
|
1154 | printf("f1\n"); | |
|
1155 | for (k = 0; k < 16; k++) | |
|
1156 | { | |
|
1157 | printf("%x ", parameter_dump_packet.sy_lfr_rw_mask.fx.f1_word1[k] ); | |
|
1158 | } | |
|
1159 | printf("\n"); | |
|
1160 | ||
|
1161 | printf("f2\n"); | |
|
1162 | for (k = 0; k < 16; k++) | |
|
1163 | { | |
|
1164 | printf("%x ", parameter_dump_packet.sy_lfr_rw_mask.fx.f2_word1[k] ); | |
|
1165 | } | |
|
1166 | printf("\n"); | |
|
1167 | ||
|
1168 | } | |
|
1169 | ||
|
1131 | 1170 | void build_sy_lfr_rw_masks( void ) |
|
1132 | 1171 | { |
|
1133 | 1172 | build_sy_lfr_rw_mask( 0 ); |
|
1134 | 1173 | build_sy_lfr_rw_mask( 1 ); |
|
1135 | 1174 | build_sy_lfr_rw_mask( 2 ); |
|
1136 | 1175 | |
|
1176 | print_sy_lfr_rw_masks(); | |
|
1177 | ||
|
1137 | 1178 | merge_fbins_masks(); |
|
1138 | 1179 | } |
|
1139 | 1180 |
General Comments 0
You need to be logged in to leave comments.
Login now