Skip to content

Commit

Permalink
Merge pull request commaai#412 from arne182/mapd
Browse files Browse the repository at this point in the history
5 ways ahead and fix for lagging zmq
  • Loading branch information
arne182 authored Jul 16, 2019
2 parents 11af699 + bf561e6 commit 232596c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion selfdrive/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def manager_thread():
# now loop
global manager_sock
context = zmq.Context()
thermal_sock = messaging.sub_sock(context, service_list['thermal'].port)
thermal_sock = messaging.sub_sock(context, service_list['thermal'].port, conflate=True)
gps_sock = messaging.sub_sock(context, service_list['gpsLocation'].port, conflate=True)
manager_sock = messaging.pub_sock(context, service_list['managerData'].port)

Expand Down
2 changes: 1 addition & 1 deletion selfdrive/mapd/mapd_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def max_speed_ahead(self, current_speed_limit, lat, lon, heading, lookahead):

speed_ahead = None
speed_ahead_dist = None
lookahead_ways = 3
lookahead_ways = 5
way = self
for i in range(lookahead_ways):
way_pts = way.points_in_car_frame(lat, lon, heading)
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/updated.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
NICE_LOW_PRIORITY = ["nice", "-n", "19"]
def main(gctx=None):
context = zmq.Context()
manager_sock = messaging.sub_sock(context, service_list['managerData'].port)
manager_sock = messaging.sub_sock(context, service_list['managerData'].port, conflate=True)
NEED_REBOOT = False
while True:
# try network
Expand Down

0 comments on commit 232596c

Please sign in to comment.