From c51af10e4eb8d46e666f4673c470bb9daba26f68 Mon Sep 17 00:00:00 2001 From: Biljana Bojovic Date: Mon, 12 Jun 2023 16:43:48 +0200 Subject: [PATCH] spectrum: (fixes #919) Use "sin" instead of "cos" for calculation of sinRayAoa/sinRayAod --- src/spectrum/model/three-gpp-channel-model.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectrum/model/three-gpp-channel-model.cc b/src/spectrum/model/three-gpp-channel-model.cc index 384870454..9c84934a5 100644 --- a/src/spectrum/model/three-gpp-channel-model.cc +++ b/src/spectrum/model/three-gpp-channel-model.cc @@ -1965,7 +1965,7 @@ ThreeGppChannelModel::GetNewChannel(Ptr channelPara // cache the component of the "rxPhaseDiff" terms which depend on the random angle of // arrivals only double sinRayZoa = sin(rayZoaRadian[nIndex][mIndex]); - double sinRayAoa = cos(rayAoaRadian[nIndex][mIndex]); + double sinRayAoa = sin(rayAoaRadian[nIndex][mIndex]); double cosRayAoa = cos(rayAoaRadian[nIndex][mIndex]); sinCosA[nIndex][mIndex] = sinRayZoa * cosRayAoa; sinSinA[nIndex][mIndex] = sinRayZoa * sinRayAoa; @@ -1974,7 +1974,7 @@ ThreeGppChannelModel::GetNewChannel(Ptr channelPara // cache the component of the "txPhaseDiff" terms which depend on the random angle of // departure only double sinRayZod = sin(rayZodRadian[nIndex][mIndex]); - double sinRayAod = cos(rayAodRadian[nIndex][mIndex]); + double sinRayAod = sin(rayAodRadian[nIndex][mIndex]); double cosRayAod = cos(rayAodRadian[nIndex][mIndex]); sinCosD[nIndex][mIndex] = sinRayZod * cosRayAod; sinSinD[nIndex][mIndex] = sinRayZod * sinRayAod;