mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-29 06:23:43 +08:00
more
This commit is contained in:
@@ -110,7 +110,7 @@ class LongitudinalPlanner(DecPlanner):
|
||||
def update(self, sm):
|
||||
DecPlanner.update(self, sm)
|
||||
self.mpc.mode = 'blended' if sm['selfdriveState'].experimentalMode else 'acc'
|
||||
if dec_mpc_mode := self.get_mpc_mode():
|
||||
if dec_mpc_mode := self.get_dec_mpc_mode():
|
||||
self.mpc.mode = dec_mpc_mode
|
||||
|
||||
if len(sm['carControl'].orientationNED) == 3:
|
||||
|
||||
@@ -18,7 +18,7 @@ class DecPlanner:
|
||||
self.mpc = mpc
|
||||
self.dec = DynamicExperimentalController()
|
||||
|
||||
def get_mpc_mode(self) -> str | None:
|
||||
def get_dec_mpc_mode(self) -> str | None:
|
||||
if not self.dec.active():
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user