Commit c56c393
committed
Fixed the memory leak error when intaking
- The issue traces back to the Controller.Screen.Print statements, we
don't know what was going on with them but removing them entirely was
the solution to the memory error
- MobileGoalHeight was changed a little bit, but needs to be adjusted to
be slightly smaller for consistency
- Removed the hasLiftReachedBottom functions from MOBILE_GOAL and
MOBILE_GOAL_UP states
- Reverted the limit switch call in hasLiftReachedBottom. Instead of
creating a new reference to the switch every time hasLiftReachedBottom
is called, we simply const_cast the limit switch created in main.cpp
and store its value1 parent 0246477 commit c56c393
File tree
3 files changed
+5
-10
lines changed- 2024/prototype/intake_mechanisms/src
3 files changed
+5
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
234 | 231 | | |
235 | 232 | | |
236 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | | - | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
0 commit comments