Skip to content

Commit

Permalink
Removed directivity index
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya <[email protected]>
  • Loading branch information
adityapande-1995 committed Nov 16, 2022
1 parent 924e18e commit 1f39def
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion examples/worlds/acoustic_comms_propagation.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
<propagation_model>
<source_power>0.001</source_power>
<noise_level>150</noise_level>
<directivity_index>4</directivity_index>
<spectral_efficiency>7</spectral_efficiency>
</propagation_model>

Expand Down
10 changes: 1 addition & 9 deletions src/systems/acoustic_comms/AcousticComms.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ class AcousticComms::Implementation
/// receiver to the same reference intensity used for source level.
public: double noiseLevel = 1;

/// \brief Ratio of the total noise power at the array to the
/// noise received by the array along its main response axis.
/// \ref https://ieeexplore.ieee.org/document/5664178
public: double directivityIndex = 4;

/// \brief Information rate that can be transmitted over a given
/// bandwidth in a specific communication system, in (bits/sec)/Hz.
/// \ref: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5514747/
Expand All @@ -104,15 +99,14 @@ bool AcousticComms::Implementation::propagationModel(
// converted to dB.
// TL : Transmission loss (dB)
// NL : Noise level.
// DI : Receiver directivity index.

// The constant 170.8 comes from reference intensity measured
// 1m from the source.
double sl = 170.8 + 10 * std::log10(this->sourcePower);
double tl = 20 * std::log10(_distToSource);

// Calculate SNR.
auto snr = sl - tl - (this->noiseLevel - this->directivityIndex);
auto snr = sl - tl - this->noiseLevel;

// References : https://www.montana.edu/aolson/ee447/EB%20and%20NO.pdf
// https://en.wikipedia.org/wiki/Eb/N0
Expand Down Expand Up @@ -169,8 +163,6 @@ void AcousticComms::Load(
GetElement("propagation_model");
this->dataPtr->sourcePower = propElement->Get<double>("source_power");
this->dataPtr->noiseLevel = propElement->Get<double>("noise_level");
this->dataPtr->directivityIndex =
propElement->Get<double>("directivity_index");
this->dataPtr->spectralEfficiency =
propElement->Get<double>("spectral_efficiency");
}
Expand Down
4 changes: 0 additions & 4 deletions src/systems/acoustic_comms/AcousticComms.hh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ namespace systems
/// * <noise_level> : Ratio of the noise intensity at the
/// receiver to the same reference intensity used
/// for source level. Defaults to 1.
/// * <directivity_index> : Ratio of the total noise power at the
/// array to the noise received by the array
/// along its main response axis. Defaults to 4.
/// * <spectral_efficiency> : Information rate that can be transmitted
/// over a given bandwidth in a specific
/// communication system, in (bits/sec)/Hz.
Expand All @@ -91,7 +88,6 @@ namespace systems
/// <propagation_model>
/// <source_power>2000</source_power>
/// <noise_level>1</noise_level>
/// <directivity_index>4</directivity_index>
/// <spectral_efficiency>7</spectral_efficiency>
/// </propagation_model>
///
Expand Down

0 comments on commit 1f39def

Please sign in to comment.