InterpolatingAntenna¶
Package: inet.physicallayer.wireless.common.antenna
compound module InterpolatingAntenna
This antenna model computes the antenna gain from the direction of the signal using linear interpolation for all 3 Euler angles independently of each other. The gain parameters contain a sequence of angle [degree] and gain [dB] pairs. The first pair must be at 0 [degree].
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
compound module |
Serves as the base module for antenna models. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
displayStringTextFormat |
string |
“” |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
mobilityModule |
string |
The path to the mobility module relative to this module, only used if no mobility submodule is present |
|
numAntennas |
int |
1 |
The number of antennas in the antenna array |
headingGains |
string |
“0 0” |
Sequence of angle [degree] and gain [dB] pairs |
elevationGains |
string |
“0 0” |
Sequence of angle [degree] and gain [dB] pairs |
bankGains |
string |
“0 0” |
Sequence of angle [degree] and gain [dB] pairs |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
InterpolatingAntenna |
|
display |
i=device/antennatower |
Source code¶
//
// This antenna model computes the antenna gain from the direction of the signal
// using linear interpolation for all 3 Euler angles independently of each other.
// The gain parameters contain a sequence of angle [degree] and gain [dB] pairs.
// The first pair must be at 0 [degree].
//
//# TODO refactor to use Delaunay triangulation on unit sphere, i.e., triangulate
//# result from enclosing spherical triangle as seen from the center
//
module InterpolatingAntenna extends AntennaBase
{
parameters:
string headingGains = default("0 0"); // Sequence of angle [degree] and gain [dB] pairs
string elevationGains = default("0 0"); // Sequence of angle [degree] and gain [dB] pairs
string bankGains = default("0 0"); // Sequence of angle [degree] and gain [dB] pairs
@class(InterpolatingAntenna);
}
File: src/inet/physicallayer/wireless/common/antenna/InterpolatingAntenna.ned