Skip to content

Commit

Permalink
Merge pull request #21 from AaronPB/gui-tabs-update
Browse files Browse the repository at this point in the history
Update GUI tabs and internal features
  • Loading branch information
AaronPB authored May 5, 2024
2 parents 659dc80 + 444b726 commit c5c3733
Show file tree
Hide file tree
Showing 51 changed files with 7,503 additions and 1,843 deletions.
540 changes: 322 additions & 218 deletions config.yaml

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions images/icons/bot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/check-tick-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/filter-horizontal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/graph-trend-line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/layer-two.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions images/icons/layout-grid-stack-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions images/icons/map-pin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/minus-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/multiple-cross-cancel-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/purse-bag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/send-plane-horizontal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/tag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/troubleshoot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,32 @@

import sys
from src.qtUIs.mainWindow import MainMenu
from PySide6 import QtWidgets
from PySide6 import QtWidgets, QtGui


def palette() -> QtGui.QPalette:
dark_palette = QtGui.QPalette()
dark_palette.setColor(QtGui.QPalette.Window, QtGui.QColor(53, 53, 53))
dark_palette.setColor(QtGui.QPalette.WindowText, QtGui.QColor(255, 255, 255))
dark_palette.setColor(QtGui.QPalette.Base, QtGui.QColor(25, 25, 25))
dark_palette.setColor(QtGui.QPalette.AlternateBase, QtGui.QColor(53, 53, 53))
dark_palette.setColor(QtGui.QPalette.ToolTipBase, QtGui.QColor(255, 255, 255))
dark_palette.setColor(QtGui.QPalette.ToolTipText, QtGui.QColor(255, 255, 255))
dark_palette.setColor(QtGui.QPalette.Text, QtGui.QColor(255, 255, 255))
dark_palette.setColor(QtGui.QPalette.Button, QtGui.QColor(53, 53, 53))
dark_palette.setColor(QtGui.QPalette.ButtonText, QtGui.QColor(255, 255, 255))
dark_palette.setColor(QtGui.QPalette.BrightText, QtGui.QColor(255, 0, 0))
dark_palette.setColor(QtGui.QPalette.Link, QtGui.QColor(42, 130, 218))
dark_palette.setColor(QtGui.QPalette.Highlight, QtGui.QColor(42, 130, 218))
dark_palette.setColor(QtGui.QPalette.HighlightedText, QtGui.QColor(0, 0, 0))
return dark_palette


def main():
app = QtWidgets.QApplication(sys.argv)
app.setStyleSheet(open("src/qtUIs/style.qss").read())
app.setStyle("Fusion")
app.setPalette(palette())
window = MainMenu()
window.show()
sys.exit(app.exec())
Expand Down
47 changes: 15 additions & 32 deletions src/enums/configPaths.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,22 @@


class ConfigPaths(Enum):
GENERAL_CUSTOM_CONFIG_PATH = "general_settings.custom_config_path"
# Settings
CUSTOM_CONFIG_PATH = "settings.custom_config_path"

GENERAL_CALIBRATION_INTERVAL_MS = (
"general_settings.calibration_times.data_interval_ms"
)
GENERAL_CALIBRATION_DURATION_MS = (
"general_settings.calibration_times.calibration_time_ms"
)
GENERAL_TEST_INTERVAL_MS = "general_settings.test_times.data_interval_ms"
GENERAL_TARE_DURATION_MS = "general_settings.test_times.tare_time_ms"
TEST_NAME = "settings.test.name"
TEST_FOLDER_PATH = "settings.test.folder_path"
TEST_SAVE_RAW = "settings.test.results.save_raw"
TEST_SAVE_CALIB = "settings.test.results.save_calib"

GENERAL_TEST_FOLDER = "general_settings.test_results.folder"
GENERAL_TEST_NAME = "general_settings.test_results.name"
GENERAL_TEST_SAVE_CALIB = "general_settings.test_results.save_calib_results"
GENERAL_TEST_SAVE_RAW = "general_settings.test_results.save_raw_results"
RECORD_INTERVAL_MS = "settings.recording.data_interval_ms"
RECORD_TARE_AMOUNT = "settings.recording.tare_data_amount"

GENERAL_PLOTTERS_ENABLED = "general_settings.tab_plotters.enabled"
GENERAL_PLOTTERS_INTERVAL_MS = "general_settings.tab_plotters.update_interval_ms"
GENERAL_PLOTTERS_MAX_FORCES = (
"general_settings.tab_plotters.plot_max_values.platform_forces"
)
GENERAL_PLOTTERS_MAX_STABILOGRAM = (
"general_settings.tab_plotters.plot_max_values.platform_stabilogram"
)
GENERAL_PLOTTERS_MAX_ENCODERS = (
"general_settings.tab_plotters.plot_max_values.encoders"
)
GENERAL_PLOTTERS_MAX_IMUS = (
"general_settings.tab_plotters.plot_max_values.imu_angles"
)
CALIBRATION_INTERVAL_MS = "settings.calibration.data_interval_ms"
CALIBRATION_DATA_AMOUNT = "settings.calibration.data_amount"

PHIDGET_P1_LOADCELL_CONFIG_SECTION = "p1_phidget_loadcell_list"
PHIDGET_P2_LOADCELL_CONFIG_SECTION = "p2_phidget_loadcell_list"
PHIDGET_ENCODER_CONFIG_SECTION = "phidget_encoder_list"
TAOBOTICS_IMU_CONFIG_SECTION = "taobotics_imu_list"
CALIBRATION_CONFIG_SECTION = "calibration_sensor"
# Sensors
SENSOR_GROUPS_SECTION = "sensor_groups"
SENSORS_SECTION = "sensors"
CALIBRATION_LOADCELL_SENSOR = "sensors_calibration.phidget_loadcell_reference"
CALIBRATION_PLATFORM_SENSOR = "sensors_calibration.platform_reference"
12 changes: 12 additions & 0 deletions src/enums/plotTypes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from enum import Enum, auto


class PlotTypes(Enum):
GROUP_PLATFORM_COP = auto()
GROUP_PLATFORM_FORCES = auto()

SENSOR_LOADCELL_FORCE = auto()
SENSOR_ENCODER_DISTANCE = auto()
SENSOR_IMU_ANGLES = auto()
SENSOR_IMU_VELOCITY = auto()
SENSOR_IMU_ACCELERATION = auto()
16 changes: 14 additions & 2 deletions src/enums/qssLabels.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,20 @@ class QssLabels(Enum):
CRITICAL_BTN = "critical_btn"
TITLE_LABEL = "title"
AUTHOR_COPYRIGHT_LABEL = "author_copy"

PREVIEW_BOX = "preview_box"

STATUS_LABEL_INFO = "status_info"
STATUS_LABEL_OK = "status_ok"
STATUS_LABEL_WARN = "status_warn"
SENSOR_CONNECTED = "connected"
SENSOR_NOT_CONNECTED = "not_connected"

SENSOR_GROUP = "sensor_group"
SENSOR = "sensor"

SENSOR_GROUP_IGNORED = "sensor_group_ignored"
SENSOR_GROUP_ERROR = "sensor_group_error"
SENSOR_GROUP_WARN = "sensor_group_warn"
SENSOR_GROUP_OK = "sensor_group_ok"
SENSOR_IGNORED = "sensor_ignored"
SENSOR_ERROR = "sensor_error"
SENSOR_OK = "sensor_ok"
Loading

0 comments on commit c5c3733

Please sign in to comment.