unl-nimbus-lab / pymavswarm

Python library used to safely control drone swarms and drone fleets with MAVLink

Home Page:https://pymavswarm.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]: Runtime error when restarting connection

evan-palmer opened this issue · comments

Describe the bug

When the MAVLink connection is made, disconnected, and then reconnected, a runtime error is raised preventing restart.

To Reproduce

Steps to reproduce the behavior:

  1. Establish a MAVLink connection using a MavSwarm instance
  2. Disconnect
  3. Attempt to reconnect

Expected behavior

MavSwarm should be able to re-establish a connection

Stack Traceback

RuntimeError: threads can only be started once

Project Version

v1.2.0

Desktop

Personal desktop computer running Ubuntu 22.04 natively

Additional context

N/A