This example shows how to plan a coverage path that surveys the parking lots of the MathWorks Lakeside campus.
Get the geodetic coordinates for the MathWorks Lakeside campus, then create the limits for our map.
Create a figure containing the map with the longitude and latitude limits.
Get the outline of the first parking lot in longitude and latitude coordinates. Then create the polygon by concatenating them.
Repeat the process for the second parking lot.
Create the coverage space with both polygons, and specify these properties:
Waypoints coordinates format: Geodetic
Reference location: MathWorks Lakeside campus location
Reference height: 25 meters
Width of sensor footprint: 20 meters
Show the coverage space on the map.
Set the sweep angle for polygons 1 and 2 to 85 and 5 degrees, respectively, to have paths that are parallel to the roads in the parking lots. Then create the coverage planner for that coverage space with the exhaustive solver algorithm.
Set the takeoff position to a location in the courtyard, then plan the coverage path.