speed of light (again)

A long time ago, in a Bugzilla far far away...

We discussed, and apparently resolved, how to support c, the defined speed of light in vacuum = 299,792,458 m/s, and simultaneously allow propagation models (such as in atmosphere, copper, fiber, underwater) by default use an appropriate propagation speed, e.g. when calculating propagation delay.

The recent clang-tidy failure caught my attention because the offending line is

src/propagation/model/three-gpp-propagation-loss-model.cc:266:

static const double M_C = 3.0e8; //!< propagation velocity in free space

A quick grep turned up (ignoring many more uses in . and .rst files):

src/core/test/tuple-value-test-suite.cc:            StringValue("{2.99, 8, LightSpeed}"));  // Plus others
src/propagation/model/propagation-loss-model.cc:    static const double C = 299792458.0; // speed of light in vacuum    // Plus others
src/propagation/model/three-gpp-propagation-loss-model.cc:static const double M_C = 3.0e8; //!< propagation velocity in free space
src/spectrum/model/three-gpp-channel-model.cc:        double lambda = 3.0e8 / m_frequency; // the wavelength of the carrier frequency
src/spectrum/model/friis-spectrum-propagation-loss.cc:     double loss_sqrt = (4 * M_PI * f * d) / 3e8;

The use of 2.99e8 might be forgiven in tuple-value-test-suite.cc, but not multiple independent uses of 3.0e8.