Main Content
gravitydir
Description
returns the normalized gravity direction vector expressed in frames defined by
D
= gravitydir(orientations
)orientations
. By default, the reference frame of these orientations
is the north-east-down (NED) reference frame. See Gravity Direction for more details.
specifies the reference frame as the D
= gravitydir(orientations
,RF
)"NED"
(north-east-down) frame or the
"ENU"
(east-north-up) frame.
Examples
Input Arguments
Output Arguments
More About
Extended Capabilities
Version History
Introduced in R2023b
See Also
linaccel
| compassAngle
| tilt