Skip to content

Commit

Permalink
Move local_global_conversion (#213)
Browse files Browse the repository at this point in the history
* Move local_global_conversion.py and its dependency to common repo
* Refactored imports
  • Loading branch information
Evang264 authored Nov 1, 2024
1 parent 415829a commit 7543e3d
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 249 deletions.
133 changes: 0 additions & 133 deletions modules/drone_odometry_local.py

This file was deleted.

6 changes: 3 additions & 3 deletions modules/flight_interface/flight_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Creates flight controller and combines odometry data and timestamp.
"""

from . import local_global_conversion
from .. import drone_odometry_local
from .. import odometry_and_time
from .. import decision_command
from .. import odometry_and_time
from ..common.logger.modules import logger
from ..common.mavlink.modules import drone_odometry
from ..common.mavlink.modules import drone_odometry_local
from ..common.mavlink.modules import flight_controller
from ..common.mavlink.modules import local_global_conversion


class FlightInterface:
Expand Down
100 changes: 0 additions & 100 deletions modules/flight_interface/local_global_conversion.py

This file was deleted.

2 changes: 1 addition & 1 deletion modules/merged_odometry_detections.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

from . import detections_and_time
from . import drone_odometry_local
from .common.mavlink.modules import drone_odometry_local


class MergedOdometryDetections:
Expand Down
2 changes: 1 addition & 1 deletion modules/odometry_and_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import time

from . import drone_odometry_local
from .common.mavlink.modules import drone_odometry_local


class OdometryAndTime:
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Packages listed in alphabetical order
numpy
opencv-python
pymap3d
pytest
pyyaml
scikit-learn
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_data_merge_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@

import numpy as np

from modules import drone_odometry_local
from modules import detections_and_time
from modules import merged_odometry_detections
from modules import odometry_and_time
from modules.common.mavlink.modules import drone_odometry_local
from modules.data_merge import data_merge_worker
from utilities.workers import queue_proxy_wrapper
from utilities.workers import worker_controller


DATA_MERGE_WORKER_TIMEOUT = 10.0 # seconds


Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_geolocation_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
import numpy as np

from modules import detections_and_time
from modules import drone_odometry_local
from modules import merged_odometry_detections
from modules.common.mavlink.modules import drone_odometry_local
from modules.geolocation import camera_properties
from modules.geolocation import geolocation_worker
from utilities.workers import queue_proxy_wrapper
from utilities.workers import worker_controller


WORK_COUNT = 3


Expand Down
2 changes: 1 addition & 1 deletion tests/test_search_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from modules import decision_command
from modules import odometry_and_time
from modules import drone_odometry_local
from modules.common.mavlink.modules import drone_odometry_local
from modules.decision import search_pattern

DISTANCE_SQUARED_THRESHOLD = 2.0
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_decision.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from modules import decision_command
from modules import object_in_world
from modules import odometry_and_time
from modules import drone_odometry_local
from modules.common.mavlink.modules import drone_odometry_local


LANDING_PAD_LOCATION_TOLERANCE = 2
Expand Down
5 changes: 2 additions & 3 deletions tests/unit/test_geolocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@

from modules import detection_in_world
from modules import detections_and_time
from modules import drone_odometry_local
from modules import merged_odometry_detections
from modules.common.logger.modules import logger
from modules.common.mavlink.modules import drone_odometry_local
from modules.geolocation import camera_properties
from modules.geolocation import geolocation
from modules.common.logger.modules import logger


FLOAT_PRECISION_TOLERANCE = 4

Expand Down

0 comments on commit 7543e3d

Please sign in to comment.