mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-11-21 18:43:45 +08:00
Compare commits
3 Commits
nayan
..
master-dev
| Author | SHA1 | Date | |
|---|---|---|---|
| a4f7d05079 | |||
| ee120a1488 | |||
| 61d3e421ec |
+2
-1
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
A supported vehicle is one that just works when you install a comma device. All supported cars provide a better experience than any stock system. Supported vehicles reference the US market unless otherwise specified.
|
A supported vehicle is one that just works when you install a comma device. All supported cars provide a better experience than any stock system. Supported vehicles reference the US market unless otherwise specified.
|
||||||
|
|
||||||
# 357 Supported Cars
|
# 358 Supported Cars
|
||||||
|
|
||||||
|Make|Model|Supported Package|ACC|No ACC accel below|No ALC below|Steering Torque|Resume from stop|<a href="##"><img width=2000></a>Hardware Needed<br> |Video|Setup Video|
|
|Make|Model|Supported Package|ACC|No ACC accel below|No ALC below|Steering Torque|Resume from stop|<a href="##"><img width=2000></a>Hardware Needed<br> |Video|Setup Video|
|
||||||
|---|---|---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
|
|---|---|---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
|
||||||
@@ -144,6 +144,7 @@ A supported vehicle is one that just works when you install a comma device. All
|
|||||||
|Hyundai|Kona Electric 2022-23|Smart Cruise Control (SCC)|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai O connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Kona Electric 2022-23">Buy Here</a></sub></details>|||
|
|Hyundai|Kona Electric 2022-23|Smart Cruise Control (SCC)|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai O connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Kona Electric 2022-23">Buy Here</a></sub></details>|||
|
||||||
|Hyundai|Kona Electric (with HDA II, Korea only) 2023|Smart Cruise Control (SCC)|Stock|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai R connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Kona Electric (with HDA II, Korea only) 2023">Buy Here</a></sub></details>|<a href="https://www.youtube.com/watch?v=U2fOCmcQ8hw" target="_blank"><img height="18px" src="assets/icon-youtube.svg" /></a>||
|
|Hyundai|Kona Electric (with HDA II, Korea only) 2023|Smart Cruise Control (SCC)|Stock|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai R connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Kona Electric (with HDA II, Korea only) 2023">Buy Here</a></sub></details>|<a href="https://www.youtube.com/watch?v=U2fOCmcQ8hw" target="_blank"><img height="18px" src="assets/icon-youtube.svg" /></a>||
|
||||||
|Hyundai|Kona Hybrid 2020|Smart Cruise Control (SCC)|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai I connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Kona Hybrid 2020">Buy Here</a></sub></details>|||
|
|Hyundai|Kona Hybrid 2020|Smart Cruise Control (SCC)|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai I connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Kona Hybrid 2020">Buy Here</a></sub></details>|||
|
||||||
|
|Hyundai|Kona Hybrid (without HDA II) 2024-26|Smart Cruise Control (SCC)|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai L connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Kona Hybrid (without HDA II) 2024-26">Buy Here</a></sub></details>|||
|
||||||
|Hyundai|Nexo 2021|All|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai H connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Nexo 2021">Buy Here</a></sub></details>|||
|
|Hyundai|Nexo 2021|All|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai H connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Nexo 2021">Buy Here</a></sub></details>|||
|
||||||
|Hyundai|Palisade 2020-22|All|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai H connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Palisade 2020-22">Buy Here</a></sub></details>|<a href="https://youtu.be/TAnDqjF4fDY?t=456" target="_blank"><img height="18px" src="assets/icon-youtube.svg" /></a>||
|
|Hyundai|Palisade 2020-22|All|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai H connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Palisade 2020-22">Buy Here</a></sub></details>|<a href="https://youtu.be/TAnDqjF4fDY?t=456" target="_blank"><img height="18px" src="assets/icon-youtube.svg" /></a>||
|
||||||
|Hyundai|Santa Cruz 2022-24|Smart Cruise Control (SCC)|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai N connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Santa Cruz 2022-24">Buy Here</a></sub></details>|||
|
|Hyundai|Santa Cruz 2022-24|Smart Cruise Control (SCC)|openpilot available[<sup>1</sup>](#footnotes)|0 mph|0 mph|[](##)|[](##)|<details><summary>Parts</summary><sub>- 1 Hyundai N connector<br>- 1 OBD-C cable (2 ft)<br>- 1 comma four<br>- 1 comma power v3<br>- 1 harness box<br>- 1 mount<br><a href="https://comma.ai/shop/comma-3x?harness=Hyundai Santa Cruz 2022-24">Buy Here</a></sub></details>|||
|
||||||
|
|||||||
+1
-1
Submodule opendbc_repo updated: c0e74738a8...eaca1a87db
@@ -172,7 +172,6 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
|
|||||||
{"EnableCopyparty", {PERSISTENT | BACKUP, BOOL}},
|
{"EnableCopyparty", {PERSISTENT | BACKUP, BOOL}},
|
||||||
{"EnableGithubRunner", {PERSISTENT | BACKUP, BOOL}},
|
{"EnableGithubRunner", {PERSISTENT | BACKUP, BOOL}},
|
||||||
{"GreenLightAlert", {PERSISTENT | BACKUP, BOOL, "0"}},
|
{"GreenLightAlert", {PERSISTENT | BACKUP, BOOL, "0"}},
|
||||||
{"GithubRunnerSufficientVoltage", {CLEAR_ON_MANAGER_START , BOOL}},
|
|
||||||
{"HasAcceptedTermsSP", {PERSISTENT, STRING, "0"}},
|
{"HasAcceptedTermsSP", {PERSISTENT, STRING, "0"}},
|
||||||
{"HideVEgoUI", {PERSISTENT | BACKUP, BOOL, "0"}},
|
{"HideVEgoUI", {PERSISTENT | BACKUP, BOOL, "0"}},
|
||||||
{"IntelligentCruiseButtonManagement", {PERSISTENT | BACKUP , BOOL}},
|
{"IntelligentCruiseButtonManagement", {PERSISTENT | BACKUP , BOOL}},
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ class ModularAssistiveDrivingSystem:
|
|||||||
self.transition_paused_state()
|
self.transition_paused_state()
|
||||||
|
|
||||||
if self.steering_mode_on_brake == MadsSteeringModeOnBrake.PAUSE:
|
if self.steering_mode_on_brake == MadsSteeringModeOnBrake.PAUSE:
|
||||||
if self.pedal_pressed_non_gas_pressed(CS):
|
if CS.brakePressed or CS.regenBraking or self.pedal_pressed_non_gas_pressed(CS):
|
||||||
self.transition_paused_state()
|
self.transition_paused_state()
|
||||||
|
|
||||||
self.events.remove(EventName.preEnableStandstill)
|
self.events.remove(EventName.preEnableStandstill)
|
||||||
|
|||||||
@@ -107,6 +107,22 @@ class TestShouldSilentLkasEnable(OpenpilotTestCase):
|
|||||||
# pause
|
# pause
|
||||||
|
|
||||||
class TestPauseMode(OpenpilotTestCase):
|
class TestPauseMode(OpenpilotTestCase):
|
||||||
|
def test_pauses_at_standstill_brake_already_held(self, mocker):
|
||||||
|
mads, sd = make_mads(mocker, MadsSteeringModeOnBrake.PAUSE)
|
||||||
|
mads.state_machine.state = State.enabled
|
||||||
|
mads.enabled = True
|
||||||
|
mads.active = True
|
||||||
|
sd.CS_prev = make_car_state(brake_pressed=True, standstill=True)
|
||||||
|
sd.sm['pandaStates'] = [make_panda_state(mocker, False)]
|
||||||
|
cs = make_car_state(brake_pressed=True, standstill=True)
|
||||||
|
|
||||||
|
run_frames(mads, sd, cs, n=199)
|
||||||
|
mads.update(cs)
|
||||||
|
|
||||||
|
assert not sd.events_sp.has(EventNameSP.controlsMismatchLateral)
|
||||||
|
assert mads.state_machine.state == State.paused
|
||||||
|
assert mads.lateral_mismatch_counter == 0
|
||||||
|
|
||||||
def test_stays_paused_at_standstill_brake_held(self, mocker):
|
def test_stays_paused_at_standstill_brake_held(self, mocker):
|
||||||
mads, sd = make_mads(mocker, MadsSteeringModeOnBrake.PAUSE)
|
mads, sd = make_mads(mocker, MadsSteeringModeOnBrake.PAUSE)
|
||||||
mads.state_machine.state = State.enabled
|
mads.state_machine.state = State.enabled
|
||||||
|
|||||||
@@ -253,6 +253,12 @@ def hardware_thread(end_event, hw_queue) -> None:
|
|||||||
chestnut_status = ChestnutStatus()
|
chestnut_status = ChestnutStatus()
|
||||||
branch = get_short_branch()
|
branch = get_short_branch()
|
||||||
|
|
||||||
|
build_metadata = get_build_metadata()
|
||||||
|
is_unsupported_combo = COMMA_HARDWARE and HARDWARE.get_device_type() == "tici" and build_metadata.channel_type != "tici"
|
||||||
|
startup_conditions["not_tici"] = not is_unsupported_combo
|
||||||
|
onroad_conditions["not_tici"] = not is_unsupported_combo
|
||||||
|
set_offroad_alert_if_changed("Offroad_TiciSupport", is_unsupported_combo, extra_text=build_metadata.channel)
|
||||||
|
|
||||||
while not end_event.is_set():
|
while not end_event.is_set():
|
||||||
sm.update(PANDA_STATES_TIMEOUT)
|
sm.update(PANDA_STATES_TIMEOUT)
|
||||||
|
|
||||||
@@ -375,16 +381,6 @@ def hardware_thread(end_event, hw_queue) -> None:
|
|||||||
startup_conditions["not_always_offroad"] = not offroad_mode
|
startup_conditions["not_always_offroad"] = not offroad_mode
|
||||||
onroad_conditions["not_always_offroad"] = not offroad_mode
|
onroad_conditions["not_always_offroad"] = not offroad_mode
|
||||||
|
|
||||||
# if an unsupported device and branch is detected, going onroad is blocked
|
|
||||||
# only allow going onroad when:
|
|
||||||
# - TIZI, or
|
|
||||||
# - TICI and channel_type is "tici"
|
|
||||||
build_metadata = get_build_metadata()
|
|
||||||
is_unsupported_combo = COMMA_HARDWARE and HARDWARE.get_device_type() == "tici" and build_metadata.channel_type != "tici"
|
|
||||||
startup_conditions["not_tici"] = not is_unsupported_combo
|
|
||||||
onroad_conditions["not_tici"] = not is_unsupported_combo
|
|
||||||
set_offroad_alert("Offroad_TiciSupport", is_unsupported_combo, extra_text=build_metadata.channel)
|
|
||||||
|
|
||||||
# if the temperature enters the danger zone, go offroad to cool down
|
# if the temperature enters the danger zone, go offroad to cool down
|
||||||
onroad_conditions["device_temp_good"] = thermal_status < ThermalStatus.critical
|
onroad_conditions["device_temp_good"] = thermal_status < ThermalStatus.critical
|
||||||
extra_text = f"{offroad_comp_temp:.1f}C"
|
extra_text = f"{offroad_comp_temp:.1f}C"
|
||||||
@@ -443,10 +439,6 @@ def hardware_thread(end_event, hw_queue) -> None:
|
|||||||
# Offroad power monitoring
|
# Offroad power monitoring
|
||||||
voltage = None if peripheralState.pandaType == log.PandaState.PandaType.unknown else peripheralState.voltage
|
voltage = None if peripheralState.pandaType == log.PandaState.PandaType.unknown else peripheralState.voltage
|
||||||
|
|
||||||
# GitHub runner auto off: 9V is used as the threshold because most desktop runners
|
|
||||||
# will rarely exceed 5V so 9V is set as our buffer between desk use and car use.
|
|
||||||
params.put_bool("GithubRunnerSufficientVoltage", ((voltage or 0) and voltage > 9000))
|
|
||||||
|
|
||||||
power_monitor.calculate(voltage, onroad_conditions["ignition"])
|
power_monitor.calculate(voltage, onroad_conditions["ignition"])
|
||||||
msg.deviceState.offroadPowerUsageUwh = power_monitor.get_power_used()
|
msg.deviceState.offroadPowerUsageUwh = power_monitor.get_power_used()
|
||||||
msg.deviceState.carBatteryCapacityUwh = max(0, power_monitor.get_car_battery_capacity())
|
msg.deviceState.carBatteryCapacityUwh = max(0, power_monitor.get_car_battery_capacity())
|
||||||
|
|||||||
Reference in New Issue
Block a user