pyltes
pyltes copied to clipboard
bad coding
return math.sqrt((self.x-BS.x)**2+(self.y-BS.y)**2)
should be
return math.hypot(self.x-BS.x,self.y-BS.y)
Also:
if BS.omnidirectionalAntenna == True:
should be
if BS.omnidirectionalAntenna:
Also:
if BS.angle > ue_angle:
alpha_diff = BS.angle - ue_angle
else:
alpha_diff = ue_angle - BS.angle:
should be
alpha_diff = abs(BS.angle - ue_angle)