longitudinal report: valid if capable of resuming (#33864)

.
pull/33865/head
Shane Smiskol 6 months ago committed by GitHub
parent c473688b2b
commit 0b20007242
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      tools/longitudinal_maneuvers/generate_report.py

@ -55,7 +55,7 @@ def report(platform, route, _description, CP, ID, maneuvers):
# maneuver validity # maneuver validity
longActive = [m.longActive for m in carControl] longActive = [m.longActive for m in carControl]
maneuver_valid = all(longActive) and not any(cs.cruiseState.standstill for cs in carState) maneuver_valid = all(longActive) and (not any(cs.cruiseState.standstill for cs in carState) or CP.autoResumeSng)
_open = 'open' if maneuver_valid else '' _open = 'open' if maneuver_valid else ''
title = f'Run #{int(run)+1}' + (' <span style="color: red">(invalid maneuver!)</span>' if not maneuver_valid else '') title = f'Run #{int(run)+1}' + (' <span style="color: red">(invalid maneuver!)</span>' if not maneuver_valid else '')

Loading…
Cancel
Save