Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connectivity #711

Open
peakyquest opened this issue Jun 20, 2024 · 5 comments
Open

connectivity #711

peakyquest opened this issue Jun 20, 2024 · 5 comments

Comments

@peakyquest
Copy link

#!/usr/bin/env python3

import asyncio
from mavsdk import System


async def run():
    # Connect to the drone
    drone = System()
    await drone.connect('serial://com7:57600')

# Run the asyncio loop
asyncio.run(run())

what I am doing wrong ?

@ShafSpecs
Copy link
Contributor

Are you using a Windows or Unix operating system?

@peakyquest
Copy link
Author

I am working on windows

@ShafSpecs
Copy link
Contributor

I am working on windows

On Windows, you would need to actually start mavsdk_server manually and then pass the server port to the System instantiation. I'm not near my PC atm so I can't paste a snippet

@julianoes
Copy link
Collaborator

@ShafSpecs
Copy link
Contributor

Or check out this comment: #678 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants