aboutsummaryrefslogtreecommitdiffstats
path: root/Widgets/ICPage.py
AgeCommit message (Collapse)AuthorFilesLines
2024-06-24Port AGL Demo Control Panel to Qt6Suchinton1-22/+20
This commit includes the following changes: V1: - Migrated from PyQt5 to PyQt6/PySide6 with minor syntax adjustments. - Removed the dependency on qtwidgets and extracted only the required animated toggle module, patching it to work with PyQt6. - Updated the README to include new steps for compiling resources. - Bumped QtPy from version 2.3.1 to 2.4.1 V2: - Refactored set_icon function in Dashboard module to make use of QIcon directly instead of using the QtSvg library (Invalid in PyQt6) - Syntax changes in UI_Handeler to use PyQt6 V3: - Update gitignore - Remove dependency on qtpy V4: - Added new animated toggle button - Refactored ICPage and Settings to use new toggle - Updated Navigation Bar Animation to have Bounce effect using "OutBounce" QEasingCurve Bug-AGL: SPEC-5161 Change-Id: I44499bb5165d5794af7e9aae3407ffae1f7e1928 Signed-off-by: Suchinton <suchinton.2001@gmail.com>
2024-05-27Improve vehicle simulatorScott Murray1-112/+12
Rework the vehicle simulator code to pull it out of the IC page code to stand on its own, and extend it to support the requested new signals. The simulation logic for the values for the new signals is ad hoc, and likely should be revisited for value sanity down the road. Bug-AGL: SPEC-5143 Change-Id: I0db0ebd6a9fc263abb1bc7f31daf032344e4f2c2 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2024-05-27Add ability to disable HVAC and steering wheel pagesScott Murray1-36/+38
Add configuration file options to disable the HVAC and steering wheel pages. Also includes a bit of refactoring around the KUKSA.val databroker client mostly focused on cleaning up naming for now. If significant development continues on this application the KuksaClient class should be used as the place where more refactoring occurs. Bug-AGL: SPEC-5142 Change-Id: I986c7cac4e6543e2a1ad40ebf436fd40e2ae2300 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-12-04Fix demo mode crash due to demo mode togglesuchinton20011-1/+2
- Avoid starting the same thread twice when running demo-mode - Add red highlight to toggle button when unchecked - Log errors when running running steering signals in CAN mode Bug-AGL: SPEC-5005 Change-Id: I73e163c87149e7d8eee53a7ab953339a7b94e1af Signed-off-by: suchinton2001 <suchinton.2001@gmail.com>
2023-11-23VSS 4.0 updatesScott Murray1-1/+1
Change Left/Right to Driver/Passenger in HVAC VSS signal names to match VSS 4.0, and update fuel level signal. Bug-AGL: SPEC-4970 Change-Id: Iedd0a8ac721cc9b48266d75b2ad03c8f15f990de Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-11-02agl-demo-control-panel: Improve gRPC Modesuchinton20011-3/+1
V1: - Remove redundant calls to set instance - Start client as soon as connection is established V2: - Enable Subscriptions in gRPC mode - Fix UI stutter by blocking signals for specific widgets - Fix Vehicle Simulator, no longer run thread as a daemon SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: Iea3b9ce0532c1ebae530aed9dddd92d72ff4dd7b
2023-10-23agl-demo-control-panel: Fix Svg icons scaling on Dashboardsuchinton20011-29/+42
V1: - Use QtSvg to set icons for dashboard icons - Update Readme and install_package script for docker image V2: Clean up code and improve formatting V3: - Increase font size for UI files - Fix HVAC bug, Control panel no longer crashes when Temp goes out of range - Refactor blocking subscription updates when CP in use Bug-AGL: SPEC-4939 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I4f256d29fac614dd3e3c4193c2a08b230359906e
2023-10-09agl-demo-control-panel: Add grpc support for databrokersuchinton20011-133/+240
- Add grpc support for databroker (set default protocol) - Add virtual car for script mode in IC app - Refine UI elements - Use specific grpc/ws jwt tokens - Simplify settings menu Bug-AGL: SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I59c4b1de80e280fe22993b2d2f7c92d6b41a89c7
2023-09-07Upload progress on AGL demo control panel in one batchsuchinton20011-0/+353
AGL Demo Control Panel is a PyQt5 application used to simulate CAN bus signals using Kuksa.val v1: Initial commit v2: Remove unused assets v3: Add Opensans fonts, remove un-used styles and add Lisences as attributions v4: - Remove Opensans fonts, default to Dejavu fonts - Replace feather icons with carbon icons. - Reusing AGL demo app assests for HVAC and Steering wheel inputs. v5: Remove assets/Images/Lisences.md attribution file Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I1529495deff6fc27eacb92f7a29c4f71f8c8d5d9