aboutsummaryrefslogtreecommitdiffstats
path: root/extras/config.py
AgeCommit message (Collapse)AuthorFilesLines
2024-10-22Fix Visual Bugs and Add options for Keypad inputSuchinton Chakravarty1-0/+19
- 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 Chakravarty1-1/+14
- 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 Chakravarty1-0/+41
- 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-07-15Add Python Script to Convert CARLA data into CAN messagessalmon_18.90.0salmon/18.90.018.90.0Suchinton1-0/+3
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-05-27Rework configuration savingScott Murray1-2/+8
Rework configuration file saving to always save to the user's local configuration directory (i.e. $HOME/.local/...), and to try loading from that location first. This allows installing initial default configurations in /etc, while still allowing user overrides. Bug-AGL: SPEC-5138 Change-Id: I03a8f0ea31b5217936fb4aab888519117977e0ef Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit 157db1c70f6bcd4d43b26d22133dec380f504483)
2024-05-27Simplify server configurationScott Murray1-50/+45
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-11-28Update paths for kuksa-client 0.4.2Scott Murray1-4/+3
Update paths into the kuksa-client module directories to work with the new locations after the switch to the split out module repository, i.e. built with kuksa-python-sdk instead of kuksa.val. Bug-AGL: SPEC-4996 Change-Id: If7ef3785f8a245b1c31e721b61687db728331103 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-11-28Fix connection security state savingScott Murray1-2/+2
Fix parsing of connection security state from the .ini file to match what is getting written out, and update the canned default .ini file to match the changes. Bug-AGL: SPEC-4997 Change-Id: I49060a8bb4f08ba0ffa0cf1748bab2203716e032 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-10-26agl-demo-control-panel: Add Fullscreen / maximized optionsuchinton20011-11/+23
V1: - Add fullscreen flag in config.ini to hide the header bar and launch the control-center in fullscreen mode. V2: - Write default user-session config if not found in config.ini Bug-AGL: SPEC-4948 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I549390711cdda95f99ee166d99c302176d105f1f
2023-10-25agl-demo-control-panel: Save user preferences for next sessionsuchinton20011-13/+56
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-19agl-demo-control-panel: Refactor Settings, Config and UI scalingsuchinton20011-11/+88
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-2/+2
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 databrokersuchinton20011-6/+6
- 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-18Update default configsuchinton20011-2/+22
- Add License header - Add CA.pem file path to enable "Secure mode" connection with kuksa Bug-AGL: SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: Ib9c8d7d2984db97563d6ba62d03d272b79979823
2023-09-07Upload progress on AGL demo control panel in one batchsuchinton20011-0/+14
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