[Positioning] Add AccessPoint::friis_constant_term()
This commit is contained in:
parent
d9adbc3f88
commit
dde917485a
|
@ -5,6 +5,18 @@ using namespace std ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* *** Operations *** */
|
||||||
|
|
||||||
|
|
||||||
|
double AccessPoint::friis_constant_term() const
|
||||||
|
{
|
||||||
|
double wavelength =
|
||||||
|
static_cast<double>(PosUtil::LIGHT_SPEED) / frequency ;
|
||||||
|
return antenna_gain + 20 * log10(wavelength) - 20 * log10(4 * M_PI) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* *** Operators *** */
|
/* *** Operators *** */
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,12 @@ public:
|
||||||
void set_friis_index(const float _friis_index) ;
|
void set_friis_index(const float _friis_index) ;
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
|
/** @name Operations */
|
||||||
|
//@{
|
||||||
|
/// Returns the Friis formula's constant term
|
||||||
|
double friis_constant_term(void) const ;
|
||||||
|
//@}
|
||||||
|
|
||||||
/** @name Operators */
|
/** @name Operators */
|
||||||
//@{
|
//@{
|
||||||
AccessPoint& operator=(const AccessPoint &source) ;
|
AccessPoint& operator=(const AccessPoint &source) ;
|
||||||
|
|
Loading…
Reference in New Issue