mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-07 09:15:40 +08:00
remove unneeded changes
This commit is contained in:
@@ -148,7 +148,7 @@ class CarController(object):
|
||||
# Send CAN commands.
|
||||
can_sends = []
|
||||
|
||||
if (CS.left_blinker_on or CS.right_blinker_on) and params.get("d_tempDisableSteerOnSignal") == "1":
|
||||
if (CS.left_blinker_on > 0 or CS.right_blinker_on > 0) and params.get("d_tempDisableSteerOnSignal") == "1":
|
||||
apply_steer = 0
|
||||
# Send steering command.
|
||||
idx = frame % 4
|
||||
|
||||
@@ -9,6 +9,7 @@ from selfdrive.car.toyota.values import ECU, check_ecu_msgs, CAR, NO_STOP_TIMER_
|
||||
from selfdrive.car import STD_CARGO_KG
|
||||
from selfdrive.swaglog import cloudlog
|
||||
|
||||
|
||||
class CarInterface(object):
|
||||
def __init__(self, CP, CarController):
|
||||
self.CP = CP
|
||||
|
||||
Reference in New Issue
Block a user