You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In NED +down values should decrease the altitude however when converting to geodetic it returns +ve altitude instead. If you look at the equations in ecef2geodetic then it can be easily seen that returned altitude value will always be positive. I think this happens because sqrt(x) is supposed to be +/- value but in code we always end up using only + value.
The text was updated successfully, but these errors were encountered:
I have a similar problem. When I use this framework geodetic2Enu is perfect, but the other way enu2Geodetic results in continuously decreasing altitude.
I figured out that during the calculation, precisely in ned2Ecef the z value stays always the same, even if given lat, lon, alt change.
Can anybody help me out?
Kind regards
philippmaa
EDIT: I solved the issue. When calculating ned_to_ecef_matrix_ (what has to be the inverse of ecef_to_ned_matrix_) as:
With this change the results are perfect. The only problem is, I think it's not good to calculat the inverse of a matrix.
If you have any hints, please let me know.
In NED +down values should decrease the altitude however when converting to geodetic it returns +ve altitude instead. If you look at the equations in ecef2geodetic then it can be easily seen that returned altitude value will always be positive. I think this happens because sqrt(x) is supposed to be +/- value but in code we always end up using only + value.
The text was updated successfully, but these errors were encountered: