Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
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
  • Loading branch information
awbrown90 authored Sep 1, 2017
1 parent cde197a commit 7c82335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ros/src/styx/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 7c82335

Please sign in to comment.