Skip to content

Commit

Permalink
- fix web controller recording state so it is latched. (#1007)
Browse files Browse the repository at this point in the history
- fix for #996
- version="4.3.10" (on main only, here it is 4.3.6.3).

(cherry picked from commit 6c9ecb9)
  • Loading branch information
Ezward authored and DocGarbanzo committed Apr 24, 2022
1 parent 3e12561 commit 2c4f3e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions donkeycar/parts/web_controller/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,14 @@ def open(self):

def on_message(self, message):
data = json.loads(message)

self.application.angle = data.get('angle', self.application.angle)
self.application.throttle = data.get('throttle', self.application.throttle)
if data.get('drive_mode') is not None:
self.application.mode = data['drive_mode']
self.application.mode_latch = self.application.mode
self.application.recording = data.get('recording', self.application.recording)
if data.get('recording') is not None:
self.application.recording = data['recording']
self.application.recording_latch = self.application.recording

def on_close(self):
# print("Client disconnected")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def package_files(directory, strip_leading):
long_description = fh.read()

setup(name='donkeycar',
version="4.3.6.2",
version="4.3.6.3",
long_description=long_description,
description='Self driving library for python.',
url='https://github.com/autorope/donkeycar',
Expand Down

0 comments on commit 2c4f3e4

Please sign in to comment.