From 7f22f1e51e4939e4d855c6c62189fe9b3f726acf Mon Sep 17 00:00:00 2001 From: Arash Sahbafard Date: Tue, 17 May 2022 23:46:56 +0200 Subject: [PATCH] Read offset (* nbTx) antennas in past --- targets/ARCH/rfsimulator/apply_channelmod.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/targets/ARCH/rfsimulator/apply_channelmod.c b/targets/ARCH/rfsimulator/apply_channelmod.c index 4ff5321e4d..510b1a07ef 100644 --- a/targets/ARCH/rfsimulator/apply_channelmod.c +++ b/targets/ARCH/rfsimulator/apply_channelmod.c @@ -68,13 +68,11 @@ void rxAddInput( const c16_t *input_sig, // Energy in one sample to calibrate input noise // the normalized OAI value seems to be 256 as average amplitude (numerical amplification = 1) const double noise_per_sample = pow(10,channelDesc->noise_power_dB/10.0) * 256; - // Fixme: we don't fill the offset length samples at begining ? - // anyway, in today code, channel_offset=0 const int dd = abs(channelDesc->channel_offset); const int nbTx=channelDesc->nb_tx; - for (int i=0; i<((int)nbSamples-dd); i++) { - c16_t *out_ptr=after_channel_sig+dd+i; + for (int i=0; i