How to change waypoints while running the simulation model when using UAV toolbox(Path Manager)?
显示 更早的评论
I want to achieve a flight path like this:
There are some cars along the road, once the UAV has detected a car, it would fly towards the car, otherwise it would fly along the road.
I am trying to modify the UAV package delivery example(https://ww2.mathworks.cn/help/uav/ug/uav-package-delivery.html) to achieve this in simulink.
But it seems that the PathManager block only receive the waypoint set once.
For example,

Here I have 12 waypoints along the road, the first waypoint pair is (point1,point2), if there is no car along this road,
then the next waypoint pair is (point2, point3)
But when I change the value of GCScommands in the Multirotor block, it didn't recieve the value.
(I changed the value directly from the data dictionary)

After the UAV reach point2, it will stuck at there instead of moving forward, even I have changed the value of GCSCommands into (point2,point3).
It will still take the first 2 points as waypoints.
How can I solve this?
采纳的回答
更多回答(1 个)
Giuseppe Silano
2022-3-2
编辑:Giuseppe Silano
2022-3-2
0 个投票
This is an example of using MATLAB 3D Animation Toolbox for object detection and tracking with an Unmanned Aerial Vehicle. I hope this can be of help.
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 3D Animation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



