Skip to content

MAVSDK-Python apython stuck and server waiting #582

@AdrianVitoria

Description

@AdrianVitoria

Wanted to connect to a Mission Planner Simulation to do the basics of arm, take-off and land.
I have little experience with Python so I followed a guide: Link
Using the "apython" thing, I tried to connect many times, to no avail.
And now it's stuck and have to close the terminal every time I try it.

How I'm opening the server: mavsdk_server_win32 -p 50051
Result:
["Time"|Info ] MAVSDK version: v1.4.12
["Time"|Info ] Waiting to discover system on udp://:14540...

Waits forever.

What I do in apython:

from mavsdk import System
drone = System(mavsdk_server_address="localhost, port=50051")
await drone.connect(system_address="udp://:14540")

Stays stuck right there.

I use Windows 10 and Python 3.11

What am I doing wrong?
Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions