Skip to content

Commit

Permalink
Change return vale of aer2enu to numpy.ndarray
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayitzin committed Jan 9, 2025
1 parent 90e0997 commit 14a1137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ahrs/common/frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ def enu2ned(x: np.ndarray) -> np.ndarray:
"""
return _ltp_transformation(x)

def aer2enu(az: float, elev: float, slant_range: float, deg: bool = True) -> tuple:
def aer2enu(az: float, elev: float, slant_range: float, deg: bool = True) -> np.ndarray:
"""
Transform local azimuth-elevation-range (AER) spherical coordinates
specified by ``az``, ``elev``, and ``slant_range`` to the local
Expand All @@ -628,4 +628,4 @@ def aer2enu(az: float, elev: float, slant_range: float, deg: bool = True) -> tup
elev *= DEG2RAD
az *= DEG2RAD
r = slant_range*np.cos(elev)
return [r*np.sin(az), r*np.cos(az), slant_range*np.sin(elev)]
return np.array([r*np.sin(az), r*np.cos(az), slant_range*np.sin(elev)])

0 comments on commit 14a1137

Please sign in to comment.