Skip to content

Commit

Permalink
Remove annoying brake chime, disable stock fcw and print thermal msg (c…
Browse files Browse the repository at this point in the history
  • Loading branch information
kegman committed Dec 18, 2019
1 parent 5fc24fd commit f311255
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion selfdrive/car/honda/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def update(self, cp, cp_cam):
self.stock_hud = False
self.stock_fcw = False
else:
self.stock_fcw = bool(cp_cam.vl["BRAKE_COMMAND"]["FCW"] != 0)
#self.stock_fcw = bool(cp_cam.vl["BRAKE_COMMAND"]["FCW"] != 0)
self.stock_fcw = False # Disable stock FCW because it's too bloody sensitive
self.stock_hud = cp_cam.vl["ACC_HUD"]
self.stock_brake = cp_cam.vl["BRAKE_COMMAND"]
2 changes: 1 addition & 1 deletion selfdrive/car/honda/hondacan.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def create_brake_command(packer, apply_brake, pump_on, pcm_override, pcm_cancel_
"COMPUTER_BRAKE_REQUEST": brake_rq,
"SET_ME_1": 1,
"BRAKE_LIGHTS": brakelights,
"CHIME": stock_brake["CHIME"], # chime issued when disabling FCM
"CHIME": 0, # chime issued when disabling FCM
"FCW": fcw << 1, # TODO: Why are there two bits for fcw?
"AEB_REQ_1": 0,
"AEB_REQ_2": 0,
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/thermald.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def thermald_thread():
fw_version_match_prev = fw_version_match
should_start_prev = should_start

#print(msg)
print(msg)

# report to server once per minute
if (count % int(60. / DT_TRML)) == 0:
Expand Down

0 comments on commit f311255

Please sign in to comment.