Skip to content

Commit

Permalink
self.poller not used (#759)
Browse files Browse the repository at this point in the history
I do not see the need for zmq and the poller being initialized and not used.
  • Loading branch information
Arne Schwarck authored and rbiasini committed Jul 24, 2019
1 parent 9405353 commit cf5c4ae
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions selfdrive/controls/lib/planner.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
import zmq
import math
import numpy as np
from common.params import Params
Expand Down Expand Up @@ -65,7 +64,6 @@ def limit_accel_in_turns(v_ego, angle_steers, a_target, CP):
class Planner(object):
def __init__(self, CP, fcw_enabled):
self.CP = CP
self.poller = zmq.Poller()

self.plan = messaging.pub_sock(service_list['plan'].port)
self.live_longitudinal_mpc = messaging.pub_sock(service_list['liveLongitudinalMpc'].port)
Expand Down

0 comments on commit cf5c4ae

Please sign in to comment.