Commit 7408441
Log AutoSelector trajectory and pose only on change (#164)
* Log AutoSelector trajectory and pose only on change
AutonomousInitialTrajectory (SwerveSample[]) was being written every
disabled cycle, wasting ~9 MB per session. AutonomousInitialPose added
another ~0.45 MB. Both are now guarded to only call Logger.recordOutput
when the value changes — trajectory by AutoOption reference identity,
pose by Pose2d.equals().
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* formatting
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6441e72 commit 7408441
1 file changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | | - | |
91 | | - | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 | | |
94 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
95 | 106 | | |
96 | 107 | | |
97 | 108 | | |
98 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
99 | 114 | | |
100 | 115 | | |
101 | 116 | | |
| |||
0 commit comments