Skip to content

Commit

Permalink
Added traffic control
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenDEV committed Aug 23, 2017
1 parent 90782ea commit ce05564
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions controller_traffic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# initial traffic conditions
speed_limit = 0.5


def get_speed_limit():
global speed_limit
return speed_limit


def set_speed_limit(speed_limit_new):
global speed_limit
speed_limit = speed_limit_new

0 comments on commit ce05564

Please sign in to comment.