Skip to content

Commit

Permalink
Merge pull request #42 from MWLCDev/Refactor_codebase
Browse files Browse the repository at this point in the history
Refactor codebase
  • Loading branch information
Ahelsamahy authored Oct 11, 2024
2 parents 54a7c28 + 1f9aaaa commit 507ca5b
Show file tree
Hide file tree
Showing 228 changed files with 519 additions and 2,661 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/docker-compose-test.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"cSpell.words": [
"BYODR",
"GPIO",
"Jetson",
"teleop"
],
"python.analysis.typeCheckingMode": "off",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import threading

import Jetson.GPIO as GPIO
import Jetson.GPIO as GPIO # type: ignore


class ThreadSafeGpioRelay(object):
class ThreadSafeJetsonGpioRelay(object):
"""
Thread-safe class for managing a GPIO relay on a Jetson Nano.
"""
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ We went ahead and designed a rover that can be assembled from **generally availa
* Community driven self-driving models
* Dockerized
* Free for personal use
* Ability to work with modular hardware

## License

This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more information.
197 changes: 0 additions & 197 deletions Services_Documentation.txt

This file was deleted.

6 changes: 3 additions & 3 deletions pilot/pilot/tests.py → archived/PIL/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

from app import CommandProcessor
from app import PilotApplication
from byodr.utils import timestamp
from byodr.utils.navigate import ReloadableDataSource, FileSystemRouteDataSource
from byodr.utils.testing import CollectPublisher, QueueReceiver, CollectServer
from BYODR_utils.common import timestamp
from BYODR_utils.common.navigate import ReloadableDataSource, FileSystemRouteDataSource
from BYODR_utils.common.testing import CollectPublisher, QueueReceiver, CollectServer


def test_create_and_setup(tmpdir):
Expand Down
6 changes: 3 additions & 3 deletions pilot/pilot/tests_relay.py → archived/PIL/tests_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from six.moves import range
from six.moves.configparser import SafeConfigParser

from byodr.utils import timestamp
from byodr.utils.testing import QueueReceiver, CollectServer, CollectJSONClient
from byodr.utils.usbrelay import SearchUsbRelayFactory
from BYODR_utils.common import timestamp
from BYODR_utils.common.testing import QueueReceiver, CollectServer, CollectJSONClient
from BYODR_utils.common.usbrelay import SearchUsbRelayFactory
from relay import MonitorApplication


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions archived/exr/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from can import CanError
from pyueye import ueye

from byodr.utils import timestamp
from byodr.utils.ipc import ReceiverThread, JSONPublisher, ImagePublisher
from BYODR_utils.common import timestamp
from BYODR_utils.common.ipc import ReceiverThread, JSONPublisher, ImagePublisher
from camera import Camera, FrameThread

logger = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions archived/odometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from gpiozero import DigitalInputDevice

from byodr.utils import timestamp
from byodr.utils.ipc import JSONPublisher
from BYODR_utils.common import timestamp
from BYODR_utils.common.ipc import JSONPublisher

logger = logging.getLogger(__name__)
log_format = "%(levelname)s: %(filename)s %(funcName)s %(message)s"
Expand Down
2 changes: 1 addition & 1 deletion teleop/teleop/tests.py → archived/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import multiprocessing
from six.moves.configparser import SafeConfigParser

from .app import TeleopApplication
from ..jetson_runtime.teleop.teleop.app import TeleopApplication
from io import open


Expand Down
2 changes: 1 addition & 1 deletion vehicles/rover/tests_rover.py → archived/tests_rover.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ConfigParser import SafeConfigParser

from app import RoverApplication
from byodr.utils.testing import CollectPublisher, QueueReceiver, CollectServer
from BYODR_utils.common.testing import CollectPublisher, QueueReceiver, CollectServer


def test_rover_create_and_setup(tmpdir):
Expand Down
Loading

0 comments on commit 507ca5b

Please sign in to comment.