Skip to content

bad coding #14

@keithbriggs

Description

@keithbriggs
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions