bugfix c.active -> c.longActive

pull/24010/head
Jason Shuler 2022-03-20 05:16:50 -04:00
parent 6fa556f750
commit 2a6f2c90fb
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class CarController():
elif CS.CP.openpilotLongitudinalControl:
# Gas/regen and brakes - all at 25Hz
if (frame % 4) == 0:
if not c.active:
if not c.longActive:
# Stock ECU sends max regen when not enabled.
self.apply_gas = P.MAX_ACC_REGEN
self.apply_brake = 0