Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions selfdrive/car/cruise.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import math
import numpy as np
import numpy as np

from cereal import car
from openpilot.common.conversions import Conversions as CV
Expand All @@ -20,7 +20,7 @@

ButtonEvent = car.CarState.ButtonEvent
ButtonType = car.CarState.ButtonEvent.Type
CRUISE_LONG_PRESS = 50
CRUISE_LONG_PRESS = 50 #
CRUISE_NEAREST_FUNC = {
ButtonType.accelCruise: math.ceil,
ButtonType.decelCruise: math.floor,
Expand Down