Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL 2 and VOXL 2 Mini
  3. Python script connected to voxl wifi, not sure how. Need help understanding.

Python script connected to voxl wifi, not sure how. Need help understanding.

Scheduled Pinned Locked Moved Unsolved VOXL 2 and VOXL 2 Mini
voxl-2
1 Posts 1 Posters 306 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Noe MedranoN Offline
    Noe MedranoN Offline
    Noe Medrano
    wrote on last edited by
    #1

    Maybe someone can help me find an explanation for this. I have been using the mavsdk (python) and the jmavsim. So fart I have been testing my scripts using the jmavsim and QGC. I am able to connect to the "drone" in the sim and view the same files that are listed in QGC. This is with no voxl connected to the computer. So as I was looking for away to connect to the voxl and download the ulogs. I did not change any code on python scripts. The voxl happened to be powered and the wifi antenna connected. So my scripts connected to the voxl instead of the simulator.

    When I was working with the sim only i was using the following to connect to the "drone".

    drone = System()
    await drone.connect(system_address="udp://:14550")
    

    I have made no changes to my python scripts. Is there something in the voxl or the mavsdk that would connect it to the voxl's wifi instead of the sim? The IP of the voxl is nowhere in my code nor connected to the computer. Before I connect to the drone the following is code appears.

    async def launch_px4():
        # Launch the PX4 simulator
        px4_directory = '/home/nm/dev/PX4-Autopilot'
        run_px4 = f'cd {px4_directory} && HEADLESS = 1 make px4_sitl jmavsim'
        px4_process = subprocess.call(['gnome-terminal', '--', 'bash', '-c', run_px4])
        return px4_process
    

    I am just trying to understand what is happening so I know how to edit and create what we need.

    Thanks.

    btw, all your suggestions are working. Thank you.

    1 Reply Last reply
    0

    Reading along? Create a free ModalAI Forum account to join in.

    With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

    Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    ModalAI
    Categories Recent Tags ModalAI.com Docs
    © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups