3dr

DroneKit mission not sent to drone

早过忘川 提交于 2020-01-07 04:37:05
问题 I'm trying to create simple mission using Drone-Kit android. Mission myMission = new Mission(); myMission.clear(); Takeoff to = new Takeoff(); ReturnToLaunch rtl = new ReturnToLaunch(); //set Altitude in meters rtl.setReturnAltitude(2); to.setTakeoffAltitude(2); myMission.addMissionItem(to); myMission.addMissionItem(rtl); MissionApi.getApi(this.drone).setMission(myMission,true); The problem is that sometimes it works, and sometimes it's doesn't... I don't know why it not working... I'm not

DroneKit: Failed to connect to /dev/tty.usbmodem1411 : 'Serial' object has no attribute 'setBaudrate'

喜欢而已 提交于 2019-12-01 10:09:48
问题 Following the DroneKit instructions, I was able to run the hello.py code from their QuickStart guide: http://python.dronekit.io/guide/quick_start.html. However, when I try to run their basic mission example, I get the setBaudrate error in the title: $ python mission_basic.py --connect=/dev/tty.usbmodem1411 Connecting to vehicle on: /dev/tty.usbmodem1411 Traceback (most recent call last): File "mission_basic.py", line 23, in <module> vehicle = connect(args.connect, wait_ready=True) File "