@@ -19,7 +19,7 @@ def compute_gb_honda_bosch(accel, speed):
19
19
20
20
21
21
def compute_gb_honda_nidec (accel , speed ): # longitudinal tuner by MVL
22
- gb = np .interp ( float (accel ), [- 3.5 , 0 , 2.0 ] , [- 900 , 0 , 198 ] )
22
+ gb = np .interp ( float (accel ), [- 3.5 , 0 , 2.0 ] , [- 225 , 0 , 198 ] )
23
23
return np .maximum ( 0.0 , gb ) , np .minimum ( gb , 0 )
24
24
25
25
def compute_gas_brake (accel , speed , fingerprint ):
@@ -225,7 +225,7 @@ def update(self, CC, CS, now_nanos):
225
225
pcm_override = True
226
226
227
227
stopping = actuators .longControlState == LongCtrlState .stopping
228
- brake = np .clip (- brake , 0 , NIDEC_BRAKE_MAX )
228
+ brake = np .clip (- brake , 0.0 , 256.0 ) # NIDEC_BRAKE_MAX
229
229
can_sends .append (hondacan .create_brake_command (self .packer , self .CAN , brake , stopping ,
230
230
pcm_override , pcm_cancel_cmd , fcw_display ,
231
231
self .CP .carFingerprint , CS .stock_brake ))
@@ -240,7 +240,7 @@ def update(self, CC, CS, now_nanos):
240
240
# Send dashboard UI commands.
241
241
# On Nidec, this controls longitudinal positive acceleration
242
242
if self .frame % 10 == 0 :
243
- gas = np .clip ( gas , 0 , NIDEC_GAS_MAX )
243
+ gas = np .clip ( gas , 0.0 , 196.0 ) # NIDEC_GAS_MAX
244
244
hud = HUDData (int (gas ), int (round (hud_v_cruise )), hud_control .leadVisible ,
245
245
hud_control .lanesVisible , fcw_display , acc_alert , steer_required , hud_control .leadDistanceBars )
246
246
# hud = HUDData(int(pcm_accel), int(round(hud_v_cruise)), hud_control.leadVisible,
0 commit comments