修正打方向燈取消方向盤控制結束後產生的錯誤

This commit is contained in:
Rick Lan
2019-07-11 09:14:26 +10:00
parent b41741136d
commit cc85c30c4f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ class CarController(object):
if self.turning_signal_timer > 0:
self.turning_signal_timer -= 1
apply_steer = 0
lkas_active = False
# Send steering command.
idx = frame % 4
+1 -1
View File
@@ -209,7 +209,7 @@ class CarController(object):
if self.turning_signal_timer > 0:
self.turning_signal_timer -= 1
apply_steer = 0
apply_steer_req = 0
#*** control msgs ***
#print("steer {0} {1} {2} {3}".format(apply_steer, min_lim, max_lim, CS.steer_torque_motor)