|
|
@ -83,7 +83,6 @@ class SelfdriveD: |
|
|
|
self.CP = CP |
|
|
|
self.CP = CP |
|
|
|
|
|
|
|
|
|
|
|
self.car_events = CarSpecificEvents(self.CP) |
|
|
|
self.car_events = CarSpecificEvents(self.CP) |
|
|
|
self.calibrator = PoseCalibrator() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Setup sockets |
|
|
|
# Setup sockets |
|
|
|
self.pm = messaging.PubMaster(['selfdriveState', 'onroadEvents']) |
|
|
|
self.pm = messaging.PubMaster(['selfdriveState', 'onroadEvents']) |
|
|
@ -132,7 +131,6 @@ class SelfdriveD: |
|
|
|
self.active = False |
|
|
|
self.active = False |
|
|
|
self.mismatch_counter = 0 |
|
|
|
self.mismatch_counter = 0 |
|
|
|
self.cruise_mismatch_counter = 0 |
|
|
|
self.cruise_mismatch_counter = 0 |
|
|
|
self.lateral_iso_violation = False |
|
|
|
|
|
|
|
self.last_steering_pressed_frame = 0 |
|
|
|
self.last_steering_pressed_frame = 0 |
|
|
|
self.distance_traveled = 0 |
|
|
|
self.distance_traveled = 0 |
|
|
|
self.last_functional_fan_frame = 0 |
|
|
|
self.last_functional_fan_frame = 0 |
|
|
|