Main Content

waypointInfo

Get waypoint information table

Since R2021a

Description

trajectoryInfo = waypointInfo(trajectory) returns a table of waypoints, times of arrival, velocities, and orientation for the trajectory System object™.

example

Examples

collapse all

trajectory = waypointTrajectory
trajectory = 
  waypointTrajectory with properties:

         SampleRate: 100
    SamplesPerFrame: 1
          Waypoints: [2x3 double]
      TimeOfArrival: [2x1 double]
         Velocities: [2x3 double]
             Course: [2x1 double]
        GroundSpeed: [2x1 double]
          ClimbRate: [2x1 double]
        Orientation: [2x1 quaternion]
          AutoPitch: 0
           AutoBank: 0
     ReferenceFrame: 'NED'

Inspect the default waypoints and times of arrival by calling waypointInfo. By default, the waypoints indicate a stationary position for one second.

waypointInfo(trajectory)
ans=2×2 table
    TimeOfArrival     Waypoints 
    _____________    ___________

          0          0    0    0
          1          0    0    0

Input Arguments

collapse all

Object of the waypointTrajectory System object.

Output Arguments

collapse all

Trajectory information, returned as a table with variables corresponding to set creation properties: Waypoints, TimeOfArrival, Velocities, and Orientation.

The trajectory information table always has variables Waypoints and TimeOfArrival. If the Velocities property is set during construction, the trajectory information table additionally returns velocities. If the Orientation property is set during construction, the trajectory information table additionally returns orientation.

Version History

Introduced in R2021a