From 7c8233518f1c036907f161a85df21eba60b6e050 Mon Sep 17 00:00:00 2001 From: Aaron Brown Date: Fri, 1 Sep 2017 15:11:07 -0700 Subject: [PATCH] Update server.py changed to hard coded False when starting, its False because car starts in manual mode and dbw_enable is false at that state. Removed the parenthesis --- ros/src/styx/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ros/src/styx/server.py b/ros/src/styx/server.py index cd4e23540e..6583d111f1 100755 --- a/ros/src/styx/server.py +++ b/ros/src/styx/server.py @@ -19,7 +19,7 @@ @sio.on('connect') def connect(sid, environ): print("connect ", sid) - bridge.publish_dbw_status(dbw_enable) + bridge.publish_dbw_status(False) def send(topic, data): s = 1 @@ -31,7 +31,7 @@ def send(topic, data): @sio.on('telemetry') def telemetry(sid, data): global dbw_enable - if(data["dbw_enable"] != dbw_enable): + if data["dbw_enable"] != dbw_enable: dbw_enable = data["dbw_enable"] bridge.publish_dbw_status(dbw_enable) bridge.publish_odometry(data)