Skip to content

[BUG] Error when connecting to FC #1012

@1Blademaster

Description

@1Blademaster
DEBUG:fgcs:Trying to connect to drone
DEBUG:fgcs:Trying to setup master with port COM18 and baud 230400
Exception in thread Thread-133 (_handle_event_internal):
Traceback (most recent call last):
  File "C:\Users\kushm\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "C:\Users\kushm\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "E:\projects\FGCS\radio\venv\Lib\site-packages\socketio\server.py", line 584, in _handle_event_internal
    r = server._trigger_event(data[0], namespace, sid, *data[1:])
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\projects\FGCS\radio\venv\Lib\site-packages\socketio\server.py", line 609, in _trigger_event
    return self.handlers[namespace][event](*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\projects\FGCS\radio\venv\Lib\site-packages\flask_socketio\__init__.py", line 282, in _handler
    return self._handle_event(handler, message, namespace, sid,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\projects\FGCS\radio\venv\Lib\site-packages\flask_socketio\__init__.py", line 827, in _handle_event
    ret = handler(*args)
          ^^^^^^^^^^^^^^
  File "E:\projects\FGCS\radio\app\endpoints\comPorts.py", line 135, in connectToDrone
    drone = Drone(
            ^^^^^^
  File "E:\projects\FGCS\radio\app\drone.py", line 147, in __init__
    initial_heartbeat = self.master.wait_heartbeat(timeout=5)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\projects\FGCS\radio\venv\Lib\site-packages\pymavlink\mavutil.py", line 557, in wait_heartbeat
    return self.recv_match(type='HEARTBEAT', blocking=blocking, timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\projects\FGCS\radio\venv\Lib\site-packages\pymavlink\mavutil.py", line 518, in recv_match
    m = self.recv_msg()
        ^^^^^^^^^^^^^^^
  File "E:\projects\FGCS\radio\venv\Lib\site-packages\pymavlink\mavutil.py", line 481, in recv_msg
    s = self.recv(n)
        ^^^^^^^^^^^^
  File "E:\projects\FGCS\radio\venv\Lib\site-packages\pymavlink\mavutil.py", line 1005, in recv
    waiting = self.port.inWaiting()
              ^^^^^^^^^^^^^^^^^^^^^
  File "E:\projects\FGCS\radio\venv\Lib\site-packages\serial\serialutil.py", line 594, in inWaiting
    return self.in_waiting
           ^^^^^^^^^^^^^^^
  File "E:\projects\FGCS\radio\venv\Lib\site-packages\serial\serialwin32.py", line 259, in in_waiting
    raise SerialException("ClearCommError failed ({!r})".format(ctypes.WinError()))
serial.serialutil.SerialException: ClearCommError failed (PermissionError(13, 'The device does not recognize the command.', None, 22))

Matek F405-Wing V2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions