|
|
|
@ -26,10 +26,10 @@ def report(platform, maneuvers): |
|
|
|
|
f.write("<div style='border-top: 1px solid #000; margin: 20px 0;'></div>\n") |
|
|
|
|
f.write(f"<h2>{description}</h2>\n") |
|
|
|
|
for run, msgs in enumerate(runs): |
|
|
|
|
t_carControl, carControl = zip(*[(m.logMonoTime, m.carControl) for m in msgs if m.which() == 'carControl']) |
|
|
|
|
t_carOutput, carOutput = zip(*[(m.logMonoTime, m.carOutput) for m in msgs if m.which() == 'carOutput']) |
|
|
|
|
t_carState, carState = zip(*[(m.logMonoTime, m.carState) for m in msgs if m.which() == 'carState']) |
|
|
|
|
t_longitudinalPlan, longitudinalPlan = zip(*[(m.logMonoTime, m.longitudinalPlan) for m in msgs if m.which() == 'longitudinalPlan']) |
|
|
|
|
t_carControl, carControl = zip(*[(m.logMonoTime, m.carControl) for m in msgs if m.which() == 'carControl'], strict=True) |
|
|
|
|
t_carOutput, carOutput = zip(*[(m.logMonoTime, m.carOutput) for m in msgs if m.which() == 'carOutput'], strict=True) |
|
|
|
|
t_carState, carState = zip(*[(m.logMonoTime, m.carState) for m in msgs if m.which() == 'carState'], strict=True) |
|
|
|
|
t_longitudinalPlan, longitudinalPlan = zip(*[(m.logMonoTime, m.longitudinalPlan) for m in msgs if m.which() == 'longitudinalPlan'], strict=True) |
|
|
|
|
|
|
|
|
|
longActive = [m.longActive for m in carControl] |
|
|
|
|
gasPressed = [m.gasPressed for m in carState] |
|
|
|
|