From aeca57b37c9cfe281c736d121dbfbb57373871ec Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 16 Aug 2024 21:19:33 +0900 Subject: [PATCH] picviewer: remove unused includes --- MAVProxy/modules/mavproxy_picviewer/__init__.py | 17 +---------------- .../modules/mavproxy_picviewer/mosaic_window.py | 7 ------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/MAVProxy/modules/mavproxy_picviewer/__init__.py b/MAVProxy/modules/mavproxy_picviewer/__init__.py index d83dbe9f20..cda199fdc3 100644 --- a/MAVProxy/modules/mavproxy_picviewer/__init__.py +++ b/MAVProxy/modules/mavproxy_picviewer/__init__.py @@ -12,30 +12,15 @@ from MAVProxy.modules.lib.mp_settings import MPSetting from MAVProxy.modules.lib import mp_util from MAVProxy.modules.mavproxy_picviewer import picviewer_window -from MAVProxy.modules.lib import camera_projection -from pymavlink import mavutil -from pymavlink import DFReader -from pymavlink.rotmat import Matrix3 -from pymavlink.rotmat import Vector3 -import math -from math import radians, degrees -from threading import Thread -import traceback from pathlib import Path -import socket, time, os, struct +import os if mp_util.has_wxpython: - from MAVProxy.modules.lib.mp_menu import MPMenuCallTextDialog from MAVProxy.modules.lib.mp_menu import MPMenuCallFileDialog from MAVProxy.modules.lib.mp_menu import MPMenuCallDirDialog from MAVProxy.modules.lib.mp_menu import MPMenuItem from MAVProxy.modules.lib.mp_menu import MPMenuSubMenu - from MAVProxy.modules.lib.mp_image import MPImage - from MAVProxy.modules.mavproxy_map import mp_slipmap - -from MAVProxy.modules.mavproxy_SIYI.camera_view import CameraView - class picviewer(mp_module.MPModule): def __init__(self, mpstate): diff --git a/MAVProxy/modules/mavproxy_picviewer/mosaic_window.py b/MAVProxy/modules/mavproxy_picviewer/mosaic_window.py index f67447cdd4..5ad027eac6 100644 --- a/MAVProxy/modules/mavproxy_picviewer/mosaic_window.py +++ b/MAVProxy/modules/mavproxy_picviewer/mosaic_window.py @@ -16,7 +16,6 @@ import os from MAVProxy.modules.lib import mp_util -from MAVProxy.modules.lib import mp_elevation if mp_util.has_wxpython: from MAVProxy.modules.lib.wx_loader import wx @@ -24,13 +23,7 @@ from MAVProxy.modules.lib.mp_menu import MPMenuItem from MAVProxy.modules.lib.mp_menu import MPMenuSubMenu from MAVProxy.modules.lib.mp_image import MPImage - from MAVProxy.modules.lib.mp_image import MPImageTrackPos - from MAVProxy.modules.lib.mp_image import MPImageFrameCounter - from MAVProxy.modules.mavproxy_map import mp_slipmap - from MAVProxy.modules.lib import camera_projection - from MAVProxy.modules.lib.mp_menu import MPMenuCallFileDialog from MAVProxy.modules.lib.mp_menu import MPMenuCallDirDialog - from MAVProxy.modules.mavproxy_picviewer import cuav_util, cuav_region, cuav_mosaic import numpy as np