diff options
author | Suchinton <suchinton.2001@gmail.com> | 2024-07-01 00:10:54 +0530 |
---|---|---|
committer | Suchinton <suchinton.2001@gmail.com> | 2024-07-15 07:52:42 +0530 |
commit | b0844193f37f477c9e7e509e0b4eaf221886192b (patch) | |
tree | a125cc5d3d90db067eb65399b1c4d812a0f0a4b1 /extras/config.py | |
parent | 25d451d87046a1cfbf7ac3cd47c2303fd29a22c5 (diff) |
Add Python Script to Convert CARLA data into CAN messagessalmon_18.90.0salmon/18.90.018.90.0
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>
Diffstat (limited to 'extras/config.py')
-rw-r--r-- | extras/config.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/config.py b/extras/config.py index b1b1d7d..a0c60fd 100644 --- a/extras/config.py +++ b/extras/config.py @@ -151,6 +151,9 @@ def hvac_enabled(): def steering_wheel_enabled(): return config.getboolean('default', 'steering-wheel-enabled', fallback=True) +def file_playback_enabled(): + return config.getboolean('default', 'file-playback-enabled', fallback=True) + if not config.has_section('vss-server'): config.add_section('vss-server') |