fix phg_gain calculation being incorrect on py2

This commit is contained in:
Rossen Georgiev 2021-11-27 15:33:16 +00:00
parent 71a97f3438
commit 8d1822ec2d
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ def parse_data_extentions(body):
'phg': phg, 'phg': phg,
'phg_power': int(phg[0]) ** 2, # watts 'phg_power': int(phg[0]) ** 2, # watts
'phg_height': (10 * (2 ** (ord(phg[1]) - 0x30))) * 0.3048, # in meters 'phg_height': (10 * (2 ** (ord(phg[1]) - 0x30))) * 0.3048, # in meters
'phg_gain': 10 ** (int(phg[2]) / 10), # dB 'phg_gain': 10 ** (int(phg[2]) / 10.0), # dB
}) })
phg_dir = int(phg[3]) phg_dir = int(phg[3])