Skip to content

Commit

Permalink
Add gps map function to tantalus profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkwok475 committed Feb 3, 2025
1 parent deb534a commit f1c827c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ dmypy.json
# PyCharm
.idea/

# Direwolf
direwolf/

logs/
mapbox_cache/
*.csv
Expand Down
3 changes: 2 additions & 1 deletion profiles/rockets/tantalus.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
update_state,
update_aprs,
)
from ..mpl_funcs import receive_map
from ..rocket_profile import RocketProfile, FlightPoint
from connections.serial.serial_connection import SerialConnection
from connections.debug.debug_connection import DebugConnection
Expand Down Expand Up @@ -47,7 +48,7 @@ def labels(self):
return [
Label(DeviceType.TANTALUS_STAGE_1_FLARE, "Altitude", update_altitude),
Label(DeviceType.TANTALUS_STAGE_1_FLARE, "MaxAltitude", update_max_altitude, "Max Altitude"),
Label(DeviceType.TANTALUS_STAGE_1_FLARE, "GPS", update_gps),
Label(DeviceType.TANTALUS_STAGE_1_FLARE, "GPS", update_gps, map_fn=receive_map),
Label(DeviceType.TANTALUS_STAGE_1_FLARE, "State", update_state),
Label(DeviceType.TANTALUS_STAGE_1_FLARE, "Pressure", update_pressure),
Label(DeviceType.TANTALUS_STAGE_1_FLARE, "Acceleration", update_acceleration),
Expand Down
1 change: 1 addition & 0 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from profiles.rockets.tantalus import TantalusProfile
from util.self_test import SelfTest
from util.detail import IS_PYINSTALLER, LOGGER
from setup import get_launch_script_path

if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
Expand Down

0 comments on commit f1c827c

Please sign in to comment.