Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENUfromLLA errors out with origin defined using integers #78

Open
cchderrick opened this issue May 24, 2022 · 0 comments
Open

ENUfromLLA errors out with origin defined using integers #78

cchderrick opened this issue May 24, 2022 · 0 comments

Comments

@cchderrick
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant