Skip to content

Commit 11046ab

Browse files
committed
FEATURE: Define flight controller vendor and board name depending on hwdef.dat file information
1 parent c2b8bda commit 11046ab

File tree

3 files changed

+689
-2
lines changed

3 files changed

+689
-2
lines changed

MethodicConfigurator/backend_flightcontroller_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010

1111
from collections.abc import Sequence
12-
from typing import Any, Union
12+
from typing import Union
1313

1414
from pymavlink import mavutil
1515

@@ -236,7 +236,7 @@ def __classify_vehicle_type(mav_type_int: int) -> str:
236236
return mav_type_to_vehicle_type.get(mav_type_int, "")
237237

238238
@staticmethod
239-
def __list_ardupilot_supported_usb_pid_vid() -> dict[int, dict[str, Any]]:
239+
def __list_ardupilot_supported_usb_pid_vid() -> dict[int, dict[str, Union[str, dict[int, str]]]]:
240240
"""
241241
List all ArduPilot supported USB vendor ID (VID) and product ID (PID).
242242

0 commit comments

Comments
 (0)