uavWaypointFollower
Follow waypoints for UAV
Description
The uavWaypointFollower
System object™ follows a set of waypoints for an unmanned aerial vehicle (UAV) using a
lookahead point. The object calculates the lookahead point, desired course, and desired yaw
given a UAV position, a set of waypoints, and a lookahead distance. Specify a set of waypoints
and tune thelookAheadDistance
input argument and
TransitionRadius
property for navigating the waypoints. The object
supports both multirotor and fixed-wing UAV types.
To follow a set of waypoints:
Create the
uavWaypointFollower
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Description
wpFollowerObj = uavWaypointFollower
creates a UAV waypoint
follower with default properties.
wpFollowerObj = uavWaypointFollower(Name,Value)
creates a UAV
waypoint follower with additional options specified by one or more
Name,Value
pair arguments.
Name
is a property name and Value
is the
corresponding value. Name
must appear inside single quotes
(''
). You can specify several name-value pair arguments in any order
as Name1,Value1,...,NameN,ValueN
.
Properties
Usage
Description
[
follows the set of waypoints specified in the waypoint follower object. The object takes
the current position and lookahead distance to compute the lookahead point on the path.
The desired course, yaw, and cross track error are also based on this lookahead point
compared to the current position. lookaheadPoint
,desiredCourse
,desiredYaw
,lookaheadDistFlag
,crossTrackError
,status
] = wpFollowerObj(currentPose
,lookaheadDistance
)status
returns zero until the UAV
has navigated all the waypoints.
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
More About
References
[1] Park, Sanghyuk, John Deyst, and Jonathan How. "A New Nonlinear Guidance Logic for Trajectory Tracking." AIAA Guidance, Navigation, and Control Conference and Exhibit, 2004.
Extended Capabilities
Version History
Introduced in R2018b