Longitudinal maneuver report: display pitch (#33610)

* export and fix platforms

* test

* display pitch

* Revert "test"

This reverts commit 80c57fda9a.

* Revert "export and fix platforms"

This reverts commit 614e62d775.

* add to top

* Revert "display pitch"

This reverts commit 5bad8c0be7.
pull/33611/head
Shane Smiskol 7 months ago committed by GitHub
parent 20c983897b
commit 3c5ed2f716
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      tools/longitudinal_maneuvers/generate_report.py

@ -75,6 +75,9 @@ def report(platform, route, _description, CP, maneuvers):
f.write(', <strong>not crossed</strong>')
f.write('</h3>')
pitches = [math.degrees(m.orientationNED[1]) for m in carControl]
f.write(f'<h3 style="font-weight: normal">Average pitch: <strong>{sum(pitches) / len(pitches):0.2f} degrees</strong></h3>')
plt.rcParams['font.size'] = 40
fig = plt.figure(figsize=(30, 26))
ax = fig.subplots(4, 1, sharex=True, gridspec_kw={'height_ratios': [5, 3, 1, 1]})

Loading…
Cancel
Save