初次提交,只有想定基本结构
This commit is contained in:
18
processors/boundsAreaPatrol.txt
Normal file
18
processors/boundsAreaPatrol.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
# File generated by Wizard 2.9.0 on Dec 22, 2024.
|
||||
|
||||
processor boundsAreaPatrol WSF_SCRIPT_PROCESSOR
|
||||
execute at_time 50 sec relative
|
||||
WsfZone zone = zone.FindZone("tw");
|
||||
Array<WsfGeoPoint> boundsPoints = zone.PolyPoints();
|
||||
WsfRoute route;
|
||||
WsfRoute r1 = route.Create("lx");
|
||||
foreach(WsfGeoPoint vertex in boundsPoints)
|
||||
{
|
||||
vertex.SetAltitudeHAE(10000);
|
||||
r1.Append(vertex,1500);
|
||||
}
|
||||
r1.Waypoint(0).SetLabel("start");
|
||||
r1.Waypoint(r1.Size() - 1).SetGoToLabel("start");
|
||||
PLATFORM.FollowRoute(r1);
|
||||
end_execute
|
||||
end_processor
|
||||
Reference in New Issue
Block a user