mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 11:23:49 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
20 lines
695 B
Python
20 lines
695 B
Python
"""
|
|
Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors.
|
|
|
|
This file is part of sunnypilot and is licensed under the MIT License.
|
|
See the LICENSE.md file in the root directory for more details.
|
|
"""
|
|
LIMIT_ADAPT_ACC = -1. # m/s^2 Ideal acceleration for the adapting (braking) phase when approaching speed limits.
|
|
LIMIT_MAX_MAP_DATA_AGE = 10. # s Maximum time to hold to map data, then consider it invalid inside limits controllers.
|
|
|
|
# Speed Limit Assist constants
|
|
PCM_LONG_REQUIRED_MAX_SET_SPEED = {
|
|
True: (33.3333, 36.1111), # km/h, (120, 130)
|
|
False: (31.2928, 35.7632), # mph, (70, 80)
|
|
}
|
|
|
|
CONFIRM_SPEED_THRESHOLD = {
|
|
True: 80, # km/h
|
|
False: 50, # mph
|
|
}
|