pyltes icon indicating copy to clipboard operation
pyltes copied to clipboard

bad coding

Open keithbriggs opened this issue 5 years ago • 0 comments

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)

keithbriggs avatar Jun 15 '20 12:06 keithbriggs