Quadcopter Altitude Problem (Z Position/Height)?
1 次查看(过去 30 天)
显示 更早的评论
H ello everyone. I am new at MATLAB. I am interested in Quadcopter Project. I tried every setp of https://www.mathworks.com/help/supportpkg/parrot/ref/follow-waypoints-parrot-drone.html documentation. I want to make quadcopter go when I enter the constant values (X,Y,Z). I can control x and y with coordinates or joystick, but I cannot control Z positiont of quadcopter. When I tried to increase the Z position of quadcopter, I got the error that the flag has been triggered. How can I adjust the quadcopter X,Y and Z position with stability of quadcopter? Can someone help me urgently?
1 个评论
Matt Overholt
2020-12-2
Could you clarify how/where you are entering the X,Y,Z coordinates? This example is taking its direction from the 'Waypoints' block as described in Task 2 of the example documentation (Configure Waypoint Follower and Landing Logic in Path Planning Subsystem). The VSS_COMMAND (Flight Commands) options, which includes the joystick input you mentioned, are not utilized directly. I did try changing the height from 1 to 3 meters (i.e. from -1 to -3 since Z points downwards) in the 'Waypoints' block and got a Stop Simulation error flag after 5 seconds of flight. Is this what you were experiencing?
If you have not seen the following quadcopter example I recommend taking a look.
Besides the joystick option (VSS_COMMAND=1), you can also modify the trajectory using previously saved MATLAB data (VSS_COMMAND=2) or spreadsheet data (VSS_COMMAND=3). Sample data files are in the 'mainModels' subdirectory.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Aerospace Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!