'How to set antenna gain in Veins-5.x?

I want to implement the formula for Free Space Propagation Model. However, I don't know how to set or get the gain for the transmitter and receiver. Should I just consider it unity? In veins-5.2 the only available antenna parameters are:

*.**.phy80211p.antenna =

*.**.phy80211p.antennaOffsetX =
 
*.**.phy80211p.antennaOffsetY =
 
*.**.phy80211p.antennaOffsetZ =
 
*.**.phy80211p.antennaOffsetYaw =


Solution 1:[1]

The parameters of your question only indicate the position offset in terms of the X, Y, and Z location.

The gain is set with the radiation pattern given in the antenna.xml file. The Veins HowTo provides a few information regarding this.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 thardes2