Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Bridge gps #102

Merged
merged 3 commits into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions unified_frameworks/sensor_array/bridge_gps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import traceback
try:
from gps_compass.actual_gps_compass import ActualGPSCompass
print("Bridge GPS did import ActualGPSCompass")
except:
print("Bridge GPS did not import ActualGPSCompass")
pass


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
from gps_compass.gps_compass_class import GPSCompass
import sys
import serial.tools.list_ports as port_list


import sys
import re
import os

root = (next(re.finditer(".*unified_frameworks", __file__)).group())
sys.path.append(root) if root not in sys.path else None
root = os.path.realpath(os.path.join(root, '..'))
sys.path.append(root) if root not in sys.path else None

# import from modules
import proj_modules.GPS
import proj_modules.LSM303
from proj_modules import GPS
from proj_modules import LSM303


class ActualGPSCompass(GPSCompass):
Expand Down