From 47bcc3a39b9365df0f131dc83228d3bcc47fdb44 Mon Sep 17 00:00:00 2001 From: Alexis Jeandet Date: Fri, 13 Jan 2023 14:57:00 +0100 Subject: [PATCH] Just put LFR frequency channel in SY_LFR_KCOEFF_BIN_INDEX Increasing max value in IDB has been rejected. This allows to stay inside the allowed range [0->35]. Signed-off-by: Alexis Jeandet --- src/tc_tm/tc_load_dump_parameters.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tc_tm/tc_load_dump_parameters.c b/src/tc_tm/tc_load_dump_parameters.c index 262b3a7..e39b08d 100644 --- a/src/tc_tm/tc_load_dump_parameters.c +++ b/src/tc_tm/tc_load_dump_parameters.c @@ -537,7 +537,7 @@ int action_dump_kcoefficients( kCoeffDumpPtr = kcoefficients_dump_1.kcoeff_blks; for (int freq = 0; freq <= NB_BINS_COMPRESSED_SM_F0; freq++) { - uint16_t bin = freq * NB_BINS_TO_AVERAGE_ASM_F0; + uint16_t bin = 0; copyInt16ByChar(kCoeffDumpPtr, (unsigned char*)(&bin)); kCoeffDumpPtr += 2; memcpy(kCoeffDumpPtr, @@ -554,7 +554,7 @@ int action_dump_kcoefficients( } for (int freq = 0; freq <= NB_BINS_COMPRESSED_SM_F1; freq++) { - uint16_t bin = freq * NB_BINS_TO_AVERAGE_ASM_F1; + uint16_t bin = 1; copyInt16ByChar(kCoeffDumpPtr, (unsigned char*)(&bin)); kCoeffDumpPtr += 2; memcpy(kCoeffDumpPtr, @@ -596,7 +596,7 @@ int action_dump_kcoefficients( kCoeffDumpPtr = kcoefficients_dump_2.kcoeff_blks; for (int freq = 0; freq <= NB_BINS_COMPRESSED_SM_F2; freq++) { - uint16_t bin = freq * NB_BINS_TO_AVERAGE_ASM_F2; + uint16_t bin = 2; copyInt16ByChar(kCoeffDumpPtr, (unsigned char*)(&bin)); kCoeffDumpPtr += 2; memcpy(kCoeffDumpPtr,