mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-15 12:34:44 +08:00
SCC-M: overriding is an enabled state (#1281)
This commit is contained in:
@@ -12,8 +12,8 @@ from openpilot.sunnypilot.selfdrive.controls.lib.smart_cruise_control import MIN
|
||||
|
||||
MapState = VisionState = custom.LongitudinalPlanSP.SmartCruiseControl.MapState
|
||||
|
||||
ACTIVE_STATES = (MapState.turning, MapState.overriding)
|
||||
ENABLED_STATES = (MapState.enabled, *ACTIVE_STATES)
|
||||
ACTIVE_STATES = (MapState.turning, )
|
||||
ENABLED_STATES = (MapState.enabled, MapState.overriding, *ACTIVE_STATES)
|
||||
|
||||
R = 6373000.0 # approximate radius of earth in meters
|
||||
TO_RADIANS = math.pi / 180
|
||||
|
||||
Reference in New Issue
Block a user