aboutsummaryrefslogtreecommitdiffstats
path: root/Widgets
AgeCommit message (Collapse)AuthorFilesLines
2024-10-30Bug fixes for Control PanelHEADtrout_19.90.0trout/19.90.019.90.0masterSuchinton Chakravarty2-35/+82
- Fixed Stutter while setting values using slider (when databroker is connected), Caused due to the values being sent at every step on main thread. - Improved error handeling if playback file is empty/ not found - Fixed Tire pressure values not being sent when connected to databroker - Selected tire pressure value and unit is updated on LCD display as selected Bug-AGL: SPEC-5161 Change-Id: I66ed5f2e36bd0b0a84743e2c2a8af0de955cf4ba Signed-off-by: Suchinton Chakravarty <suchinton.2001@gmail.com>
2024-10-25Patch Update: Fix Floating Tire Pressure VisibilitySuchinton Chakravarty1-2/+3
This commit patches a bug where the toggle button for Tire Pressure Window was clipped and would not switch checked state properly. It also avoids rescaling the floating window at toggle event, instead now hideing and unhiding the window. Bug-AGL: SPEC-5161 Change-Id: I4863fc6d0fa538884441835fe043b9748e0f0a1e Signed-off-by: Suchinton Chakravarty <suchinton.2001@gmail.com>
2024-10-22Fix Visual Bugs and Add options for Keypad inputSuchinton Chakravarty4-69/+199
- Fixed spin wheel input alignment for HVAC controls - Minor tweaks to Gauge input, Added new tick marks and improved gradient - Adding option(s) in config to handle Keypad input settings - Reconnect QML signals to enable two way input for Speed, RPM and other QML elements - Refactor and Add CLI option to start and stop playback. - Make Tire Pressure Dock into floating window and align to screen center. - Update resources to include keypad icons. - Add new tile for Keypad inputs Bug-AGL: SPEC-5161 Change-Id: I1ecefdfd114ecad081c138e74c1598907d91fd23 Signed-off-by: Suchinton Chakravarty <suchinton.2001@gmail.com>
2024-10-14Add Tire Pressure, Keypad elements and misc. UI ChangesSuchinton Chakravarty4-89/+264
- Increased slider grab handle size - Add floating menu for Tire Pressure UI - Show errow in Playback toggle when CAN interface is not available - Update Half gauges to show Unit and logo correctly - Update App resources - Add new tumbler input for HVAC temp - Add new get function to KuksaClient to get Tire Pressure unit and Current value to increment Fixes: - Check for vcar dbc file at '/etc/kuksa-dbc-feeder/' - Increase font size in Settings page - Allow for tumbler/ spin wheel values to wrap around Bug-AGL: SPEC-5161 Change-Id: I2386bf7dc762b09b83cef1be104a35d6afc0a704 Signed-off-by: Suchinton Chakravarty <suchinton.2001@gmail.com>
2024-10-10Update Carla Playback ModeSuchinton Chakravarty2-16/+76
- Now file playback changes values on control panel - Added Config file path to ini file - Fixed signal mapping for Indicator and Hazard lights - Fixed crash of carla_to_CAN due to `Break` signal. - can_messages.txt is now stored in assets dir - Script Toggle shows error when can interface is not available - Added cantools as new dependency - Fixed default paths for can_messages playback file Bug-AGL: SPEC-5161 Change-Id: I7b51ff3db1238e0c8addc19152d24d4ce2c8574e Signed-off-by: Suchinton Chakravarty <suchinton.2001@gmail.com>
2024-09-29Add New Custom Gauges and CARLA playback refactoredSuchinton Chakravarty2-16/+128
- This commit adds new custom QML Gauges for Engine RPM, Speed, Fuel level and Coolant temp - Improve Exception handling for CARLA playback - Add the RPM and Speed Gauge elements - Update the functions resp. for updating their values - Fix Alignment of backgrounds, font size and progress bar - Update Half Gauge to have progress ticks - Add gauges to the main IC page Bug-AGL: SPEC-5161 Change-Id: I52274afb7ea95c812c539a0b21305ad078d5dadb Signed-off-by: Suchinton Chakravarty <suchinton.2001@gmail.com>
2024-07-15Add Python Script to Convert CARLA data into CAN messagessalmon_18.90.0salmon/18.90.018.90.0Suchinton1-17/+30
V1: - Add carla_to_CAN.py script to convert CARLA data into CAN messages - Add README and requirements.txt V2: - Add script to record and playback messages from can interface - Fix mappings to agl-vcar.dbc file V3: - Fix playback feature for record_playback.py - Update requirements.txt - Update README to explain setup and usage of Scripts with CARLA V4: - Add file playback feature to Demo Control Panel - Remove dependency on numpy to calculate vehicle speed, use math lib instead - record_playback.py can now be imported and also be used in standalone mode - Fix: Now data is sent to CAN interface only when it is updated - Fix: Delay is now based on previous timestamp and not the starting timestamp - Fix: Send correct Gear messages, compatible with the agl-vcar signals Bug-AGL: SPEC-5161 Change-Id: I18a14e8e6ac4d24e6ed8774402fb93a36dec274e Signed-off-by: Suchinton <suchinton.2001@gmail.com>
2024-06-24Port AGL Demo Control Panel to Qt6Suchinton6-95/+249
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 Murray4-118/+116
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>
2024-05-27Simplify server configurationScott Murray1-37/+9
Remove the multiple server profiles to simplify the UI and the configuration file, as they're not that useful in practice. The unused buttons have also been removed from the settings page, and the server configuration enlarged and centered to improve the layout. Bug-AGL: SPEC-5141 Change-Id: I90cb6fb891de120435b4c3cf8141e27d6dbf0166 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-12-04Fix demo mode crash due to demo mode togglesuchinton20012-4/+6
- 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-28Fix HVAC signal updatesScott Murray1-3/+3
Add required targetValue attribute to HVAC signal setValue calls to indicate they are actuator target values. Bug-AGL: SPEC-4995 Change-Id: I07c5f17279b002f52d9a2b990cffbbceab816444 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-11-23VSS 4.0 updatesScott Murray2-5/+5
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 Modesuchinton20012-12/+18
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-25agl-demo-control-panel: Save user preferences for next sessionsuchinton20011-26/+31
Read from config.ini to load users last uses settings. SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I7a8da78a745f56596a84eb6c791af10881c0f7e5
2023-10-24agl-demo-control-panel: Fix circular import problemsuchinton20011-22/+19
Fix circular import, causing control panel to fail to launch SPEC-4942 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: Id035ba28b8c19d1002abf0073656d99572c43b0e
2023-10-23agl-demo-control-panel: Fix Svg icons scaling on Dashboardsuchinton20015-130/+193
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-19agl-demo-control-panel: Refactor Settings, Config and UI scalingsuchinton20014-53/+167
V1: - Add template to specify new configs in config.ini - Add drop-down to load all configurations specified in config.ini - Add new assets and refine UI elements (Scaling issue fixed) - Add size grip to main window - Add options in settings to configure port and AGL's CA.pem file - Removed unused or redundant files V2: - Check for user configs agl-demo-control-panel.ini & config.ini before resorting to default config.ini - Check for CA.pem and jwt tokens in default paths - Add new fields in settings for CA.pem file, jwt token path, TLS Server name - Fix crash in dashboard.py module due to icon.availableSizes() V3: Add Start/Stop states for the client V4: Block subscription event updates to the UI when values are changed on the control panel Bug-AGL: SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: Id7883ba3bc88248dabb58d54e6e931f6d365fd54
2023-10-12agl-demo-control-panel: Add installation steps for debian/RPiOSsuchinton20011-3/+22
V1: - Fix window dragging event crash - Update dependencies in requirements.txt - Add installation instructions for Debian-based systems - Update Dashboard scaling of icons SPEC-4929 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I200f18606a6008780d2f4553052f24a9df5d10b7
2023-10-09agl-demo-control-panel: Add grpc support for databrokersuchinton20013-261/+455
- 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-27Update UI filessuchinton20012-179/+89
V1: - Widen Scroll bars in IC and HVAC Page - Update UI to use carbon icon resources - Add new Dashboard page - Add bottom navigation bar to main window UI - Remove deprecated navigation page files Bug-AGL: SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: Ia307d326c4bc9af9969e1d6b2a2cb4948a7ee286
2023-09-07Upload progress on AGL demo control panel in one batchsuchinton20015-0/+926
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