LongControl: remove redundant check on active (#23481)

old-commit-hash: 4208fe018e898d9f3cde1b2ac8feb29d9bb11ce6
This commit is contained in:
Dean Lee
2022-01-11 01:46:02 +08:00
committed by GitHub
parent 233291a14b
commit 97c4cdc0cc
+1 -2
View File
@@ -26,8 +26,7 @@ def long_control_state_trans(CP, active, long_control_state, v_ego, v_target_fut
else:
if long_control_state == LongCtrlState.off:
if active:
long_control_state = LongCtrlState.pid
long_control_state = LongCtrlState.pid
elif long_control_state == LongCtrlState.pid:
if stopping_condition: