Skip to content

ENUfromLLA errors out with origin defined using integers #78

@cchderrick

Description

@cchderrick

Possibly related to this #62.

origin_int = LLA(45,100)
origin_float = LLA(45.0,100.0)
t = ENUfromLLA(origin_float, wgs84) # this works
t = ENUfromLLA(origin_int, wgs84) # this throws an error

So it throws this

ERROR: MethodError: no method matching ENUfromECEF(::ECEF{Float64}, ::Int64, ::Int64)

Because of this signature

ENUfromECEF(origin::ECEF{T}, lat::T, lon::T) where T

The ECEF translated origin was auto-promoted from LLA{Int64} to ECEF{Float64}, now T don't match.

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