BlueROV-10: Mission Command
来源:互联网 发布:华为应用市场软件 编辑:程序博客网 时间:2024/06/07 03:37
1. Mission Command Overview:
There are three types of commands:- NAVigation commands (MAV_CMD_NAV_*) are used to control vehicle movement, including takeoff, moving to and around waypoints, changing altitude, and landing.
- DO commands (MAV_CMD_DO_*) are for auxiliary functions that do not affect the vehicle’s position (for example, setting the camera trigger distance, or setting a servo value).
- CONDITION commands (MAV_CMD_CONDITION_*) are used to delay DO commands until some condition is met. For example MAV_CMD_CONDITION_DISTANCE will prevent DO commands executing until the vehicle reaches the specified distance from the waypoint.
2. Download current mission:
The mission commands for a vehicle are accessed using the Vehicle.commands attribute. The attribute is of type CommandSequence, a class that provides ‘array style’ indexed access to the waypoints which make up the mission.Waypoints are not downloaded from vehicle until download() is called. The download is asynchronous; use wait_ready() to block your thread until the download is complete:
# Connect to the Vehicle (in this case a simulated vehicle at 127.0.0.1:14550)vehicle = connect('127.0.0.1:14550', wait_ready=True)# Download the vehicle waypoints (commands). Wait until download is complete.cmds = vehicle.commandscmds.download()cmds.wait_ready()
3. Clearing current mission:
To clear a mission you call clear() and then Vehicle.commands.upload() (to upload the changes to the vehicle):# Connect to the Vehicle (in this case a simulated vehicle at 127.0.0.1:14550)vehicle = connect('127.0.0.1:14550', wait_ready=True)# Get commands object from Vehicle.cmds = vehicle.commands# Call clear() on Vehicle.commands and upload the command to the vehicle.cmds.clear()cmds.upload()Note: If a mission that is underway is cleared, the mission will continue to the next waypoint. If you don’t add a new command before the waypoint is reached then the vehicle mode will change to RTL (return to launch) mode.
0 0
- BlueROV-10: Mission Command
- BlueROV-11: Full Flight Control and Mission Planning with QGroundControl
- PythonChallenge Mission 10
- USS Fort McHenry Mission to Set Tone for U.S. Africa Command
- BlueROV-9: Driving Control
- bluerov使用usb摄像头
- New mission
- mission信息
- BlueROV-7: Keep Learning Dronekit
- BlueROV-2: Basic ESC Documentation: Speed Controller
- BlueROV-4: DroneKit, MAVLink and Companion Computers
- BlueROV-8: Functions to Drive the Vehicle
- BlueROV-12: Install Raspbian and ssh Connection
- BlueROV-13: Configuring Parameters in QGroundControl
- BlueROV-14: Analysis of Communication Protocol MAVlink
- BlueROV-16: Solve the initialization problem
- BlueROV-17: Install Python Virtual Environment & Github
- Man On Mission
- C++内存泄露注意点
- 源码大招:不服来战!撸这些完整项目,你不牛逼都难!
- Hibernate 学习(三)Hibernate主键生成策略
- Oracle数据泵倒入导出
- 探讨C++内存回收
- BlueROV-10: Mission Command
- 2017年十大移动应用开发的测试工具
- 使用 maven 搭建 Spring Demo
- Ztree创建带有复选框的树
- [bzoj1266][AHOI2006] 上学路线 最小割+最短路
- spring boot和mybatis的整合
- Qt 工具下载
- sdutoj 3896 HEX 思维+组合数
- 清华大学计算机科学与技术的在读研究生、博士生和准研究生