Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
fixed for linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jc01rho committed Sep 10, 2023
1 parent 09bc3e0 commit 3c602ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion selfdrive/car/gm/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/controls/radard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3c602ee

Please sign in to comment.