From 3c602eefa6f33b7811b1f62638e1622b8720ee70 Mon Sep 17 00:00:00 2001 From: jc01rho Date: Mon, 11 Sep 2023 04:45:18 +0900 Subject: [PATCH] fixed for linter. build #892 --- selfdrive/car/gm/carcontroller.py | 5 ++++- selfdrive/controls/radard.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/gm/carcontroller.py b/selfdrive/car/gm/carcontroller.py index 3d8a48c0b13ecd3..2cf5af7cdf705ed 100644 --- a/selfdrive/car/gm/carcontroller.py +++ b/selfdrive/car/gm/carcontroller.py @@ -10,8 +10,10 @@ import math import cereal.messaging as messaging import numpy as np +## Boltpiot things from collections import deque - +from openpilot.common.params import Params +## VisualAlert = car.CarControl.HUDControl.VisualAlert NetworkLocation = car.CarParams.NetworkLocation LongCtrlState = car.CarControl.Actuators.LongControlState @@ -222,6 +224,7 @@ def update(self, CC, CS, now_nanos): else: if self.frame % 4 == 0: idx = (self.frame // 4) % 4 + stopping = actuators.longControlState == LongCtrlState.stopping at_full_stop = CC.longActive and CS.out.standstill near_stop = CC.longActive and (CS.out.vEgo < self.params.NEAR_STOP_BRAKE_PHASE) diff --git a/selfdrive/controls/radard.py b/selfdrive/controls/radard.py index db129286c3eb6e7..396fdf03e553722 100755 --- a/selfdrive/controls/radard.py +++ b/selfdrive/controls/radard.py @@ -13,7 +13,7 @@ from openpilot.common.kalman.simple_kalman import KF1D -from openpilot.common.params import Params + from selfdrive.controls.lib.lane_planner import TRAJECTORY_SIZE import numpy as np