pull/21912/head
Harald Schafer 4 years ago
parent a8f3e2b3c2
commit cae0819e8b
  1. 3
      selfdrive/car/honda/carcontroller.py

@ -155,14 +155,13 @@ class CarController():
starting = accel > 0 and CS.out.vEgo < 0.3 starting = accel > 0 and CS.out.vEgo < 0.3
# Prevent rolling backwards # Prevent rolling backwards
accel = -1.0 if stopping else accel accel = -1.0 if stopping else accel
if CS.CP.carFingerprint in HONDA_BOSCH: if CS.CP.carFingerprint in HONDA_BOSCH:
apply_accel = interp(accel, P.BOSCH_ACCEL_LOOKUP_BP, P.BOSCH_ACCEL_LOOKUP_V) apply_accel = interp(accel, P.BOSCH_ACCEL_LOOKUP_BP, P.BOSCH_ACCEL_LOOKUP_V)
else: else:
apply_accel = interp(accel, P.NIDEC_ACCEL_LOOKUP_BP, P.NIDEC_ACCEL_LOOKUP_V) apply_accel = interp(accel, P.NIDEC_ACCEL_LOOKUP_BP, P.NIDEC_ACCEL_LOOKUP_V)
# wind brake from air resistance decel at highspeed # wind brake from air resistance decel at high speed
wind_brake = interp(CS.out.vEgo, [0.0, 2.3, 20.0], [0.0, 0.0, 0.1]) wind_brake = interp(CS.out.vEgo, [0.0, 2.3, 20.0], [0.0, 0.0, 0.1])
if CS.CP.carFingerprint in OLD_NIDEC_LONG_CONTROL: if CS.CP.carFingerprint in OLD_NIDEC_LONG_CONTROL:
#pcm_speed = pcm_speed #pcm_speed = pcm_speed

Loading…
Cancel
Save