Cannot connect to the vehicle via telemetry
See original GitHub issueI cannot connect to pixhawk 2.4.8 through telemetry. Using: Ubuntu 16.04 LTS, dronekit 2.9.1 pymavlink 2.2.10 pyserial 3.4 python 3.5.2
Hardware: I am using a 915MHz telemetry and have tested it in Mission planner and QGroundControl with the exact same set up, have done multiple auto mission with it and haven’t gotten any problems.
I have tried:
v= dronekit.connect("/dev/ttyUSB0", baud=57600, wait_ready=True)
v= dronekit.connect("/dev/ttyUSB0", baud=57600, rate=10, wait_ready=True)
v = dronekit.connect("/dev/ttyUSB0", baud=57600, wait_ready=False)
with
v.wait_ready(True, timeout=30)
and even 60, 180 and 240
vehicle = connect("/dev/ttyUSB0", baud=57600, wait_ready=False, heartbeat_timeout=15)
vehicle.wait_ready('autopilot_version', timeout=180)
Output:
with v= dronekit.connect("/dev/ttyUSB0", baud=57600
, it connects and then gets disconnected right away:
I used ipython there, but I have tried it in terminal and python script.
Increase timeout will just timeout after a long time.
I used QGroundContorl with system ID 255 and it connects with no problem. When I test I have made sure that
- The port exist
- Nothing else is using it
- No Ground Control Software is open
With the same setup successfully using dronekit connecting with:
- Wired connection to pixhawk
vehicle = connect("/dev/ttyACM0", baud=115200, wait_ready=True)
- Telemetry 2 connection to pixhawk
vehicle = dronekit.connect("/dev/ttyUSB0", wait_ready=True, baud=1500000)
- Any Simulators (sim_vehicle, dronekit, gazebo and Javsim)
Thank you for helping!
EDIT 1: I downgraded pymavlink to 2.0.6, still cannot connect
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
@Rainerino Perhaps I should say “probably not fixed until someone creates a PR”. All of the Python 3 work was done by community, and indeed most of the work over the last few years. There is some work done by the various projects that use this software, but not a great deal.
The team will take PRs for fixes in Python 3, but if you just raise an issue, then the chances of it being fixed in any sort of timely manner are low.