Skip to content

Commit

Permalink
Adding some more debug printouts on replay drive
Browse files Browse the repository at this point in the history
  • Loading branch information
devtekve committed Dec 12, 2024
1 parent a879b79 commit 78279ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/safety_replay/replay_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ def replay_drive(lr, safety_mode, param, alternative_experience, segment=False):
_unified_engagement_mode = bool(alternative_experience & ALTERNATIVE_EXPERIENCE.UNIFIED_ENGAGEMENT_MODE)
_always_allow_mads_button = bool(alternative_experience & ALTERNATIVE_EXPERIENCE.ALWAYS_ALLOW_MADS_BUTTON)
safety.set_mads_params(_enable_mads, _disengage_lateral_on_brake, _main_cruise_allowed, _unified_engagement_mode, _always_allow_mads_button)
print("alternative experience:")
print(f" enable mads: {_enable_mads}")
print(f" disengage lateral on brake: {_disengage_lateral_on_brake}")
print(f" main cruise allowed: {_main_cruise_allowed}")
print(f" unified engagement mode: {_unified_engagement_mode}")
print(f" always allow mads button: {_always_allow_mads_button}")

if segment:
init_segment(safety, lr, safety_mode, param)
Expand Down

0 comments on commit 78279ee

Please sign in to comment.