Skip to content

Commit

Permalink
Pull from kegman osm settings
Browse files Browse the repository at this point in the history
  • Loading branch information
arne182 authored Jul 14, 2019
1 parent 7ea1b96 commit aab1c80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/controls/lib/planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ def update(self, rcv_times, CS, CP, VM, PP, live20, live100, md, live_map_data):
map_valid = True #live_map_data.liveMapData.mapValid and map_age < 10.0

# Speed limit and curvature
set_speed_limit_active = self.params.get("LimitSetSpeed") == "1" and self.params.get("SpeedLimitOffset") is not None
set_speed_limit_active = kegman.get("LimitSetSpeed")
if set_speed_limit_active and map_valid:
offset = float(self.params.get("SpeedLimitOffset"))
offset = float(kegman.get("SpeedLimitOffset"))
if live_map_data.liveMapData.speedLimitValid:
speed_limit = live_map_data.liveMapData.speedLimit
v_speedlimit = speed_limit + offset
Expand Down

0 comments on commit aab1c80

Please sign in to comment.