From 3c5ed2f7160f8609695bcb13036f2e1714e53f23 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 19 Sep 2024 21:57:11 -0700 Subject: [PATCH] Longitudinal maneuver report: display pitch (#33610) * export and fix platforms * test * display pitch * Revert "test" This reverts commit 80c57fda9afcb6e6cae002f54d8ffbe46c2feb01. * Revert "export and fix platforms" This reverts commit 614e62d775799a9af1e76ab9025dc96bbe1b83c6. * add to top * Revert "display pitch" This reverts commit 5bad8c0be71aba914490848473782ed7c4a1ca83. --- tools/longitudinal_maneuvers/generate_report.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/longitudinal_maneuvers/generate_report.py b/tools/longitudinal_maneuvers/generate_report.py index 36e2d3eecc..dff7a857bc 100755 --- a/tools/longitudinal_maneuvers/generate_report.py +++ b/tools/longitudinal_maneuvers/generate_report.py @@ -75,6 +75,9 @@ def report(platform, route, _description, CP, maneuvers): f.write(', not crossed') f.write('') + pitches = [math.degrees(m.orientationNED[1]) for m in carControl] + f.write(f'

Average pitch: {sum(pitches) / len(pitches):0.2f} degrees

') + 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]})