From fe56ee1741a456669a97de6e17c38349299c5bd2 Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Tue, 28 Oct 2014 11:48:13 +0100 Subject: [PATCH] fixed Bug 2011 - speed of light constant --- src/propagation/model/propagation-delay-model.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/propagation/model/propagation-delay-model.cc b/src/propagation/model/propagation-delay-model.cc index e920b6a57..aea0dcc6f 100644 --- a/src/propagation/model/propagation-delay-model.cc +++ b/src/propagation/model/propagation-delay-model.cc @@ -92,8 +92,8 @@ ConstantSpeedPropagationDelayModel::GetTypeId (void) static TypeId tid = TypeId ("ns3::ConstantSpeedPropagationDelayModel") .SetParent () .AddConstructor () - .AddAttribute ("Speed", "The speed (m/s)", - DoubleValue (300000000.0), + .AddAttribute ("Speed", "The propagation speed (m/s) in the propagation medium being considered. The default value is the propagation speed of light in the vacuum.", + DoubleValue (299792458), MakeDoubleAccessor (&ConstantSpeedPropagationDelayModel::m_speed), MakeDoubleChecker ()) ;