mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-04 20:05:38 +08:00
fixes
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
from cereal import car, custom
|
||||
|
||||
from panda import ALTERNATIVE_EXPERIENCE
|
||||
from cereal import car, log, custom
|
||||
|
||||
from openpilot.sunnypilot.mads.state import StateMachine
|
||||
|
||||
State = custom.SelfdriveStateSP.ModifiedAssistDrivingSystem.ModifiedAssistDrivingSystemState
|
||||
ButtonType = car.CarState.ButtonEvent.Type
|
||||
EventName = car.OnroadEvent.EventName
|
||||
EventName = log.OnroadEvent.EventName
|
||||
|
||||
|
||||
class ModifiedAssistDrivingSystem:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from cereal import car, custom
|
||||
from cereal import log, custom
|
||||
from openpilot.selfdrive.selfdrived.events import ET, Events
|
||||
from openpilot.selfdrive.selfdrived.state import SOFT_DISABLE_TIME
|
||||
from openpilot.common.realtime import DT_CTRL
|
||||
|
||||
State = custom.SelfdriveStateSP.ModifiedAssistDrivingSystem.ModifiedAssistDrivingSystemState
|
||||
EventName = car.OnroadEvent.EventName
|
||||
EventName = log.OnroadEvent.EventName
|
||||
|
||||
ENABLED_STATES = (State.enabled, State.softDisabling, State.overriding)
|
||||
ACTIVE_STATES = (State.paused, *ENABLED_STATES)
|
||||
|
||||
Reference in New Issue
Block a user