aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
AgeCommit message (Collapse)AuthorFilesLines
2024-10-30Bug fixes for Control PanelHEADtrout_19.90.0trout/19.90.019.90.0masterSuchinton Chakravarty1-3/+7
- 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-22Fix Visual Bugs and Add options for Keypad inputSuchinton Chakravarty1-31/+63
- 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-10Update Carla Playback ModeSuchinton Chakravarty2-77/+177
- 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 Chakravarty1-0/+1
- 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.0Suchinton5-0/+491
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>
2023-10-19agl-demo-control-panel: Refactor Settings, Config and UI scalingsuchinton20013-159/+0
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-09-07Upload progress on AGL demo control panel in one batchsuchinton20014-0/+234
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