diff options
author | suchinton2001 <suchinton.2001@gmail.com> | 2023-10-30 18:58:40 +0530 |
---|---|---|
committer | suchinton2001 <suchinton.2001@gmail.com> | 2023-11-02 03:44:53 +0530 |
commit | f9aef30f5e78f0f4e179948946d043c4725712d5 (patch) | |
tree | d9edbcda6ac219155e9ef5642001395d694f1e9a /Widgets/ICPage.py | |
parent | edfd96499fdbcf869c5182f2cfa89703cfb0dfd0 (diff) |
agl-demo-control-panel: Improve gRPC Mode
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
Diffstat (limited to 'Widgets/ICPage.py')
-rw-r--r-- | Widgets/ICPage.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Widgets/ICPage.py b/Widgets/ICPage.py index d4d6592..9106249 100644 --- a/Widgets/ICPage.py +++ b/Widgets/ICPage.py @@ -68,10 +68,8 @@ class ICWidget(Base, Form): self.setupUi(self) self.IC = IC_Paths() - # self.vehicle_simulator = VehicleSimulator(self) self.feed_kuksa = FeedKuksa() - self.feed_kuksa.start() self.vehicle_simulator = VehicleSimulator() header_frame = self.findChild(QWidget, "header_frame") @@ -380,7 +378,7 @@ class VehicleSimulator(QObject): self.engine_speed = self.DEFAULT_IDLE_RPM self.running = False self.lock = threading.Lock() - self.thread = threading.Thread(target=self.run, daemon=True) + self.thread = threading.Thread(target=self.run) def start(self): if not self.running: |