So here at 997 we’ve had some down time recently so we started a C++ repo for the robot. Essentially everything we do in our main repo we also do but in C++. This is my first time even really coding in C++ and I would love some feedback on how we’re doing so far especially when it comes to how we are storing variables because going from Java to C++ is weirdddddd.
C++ is a confusing language when you don’t learn and know. But it is very enjoyable when you learn.
On thing that will help you with variable allocation and storage etc is understanding the difference between stack and heap memory, and what you need to do to manage them.
Especially with the new Command-Framework (which I also would plug you use while you are doing this new learning experience) that uses Dependency Injection as you compose objects you actually have a lot more flexibility and get some efficiency by composing your objects on the stack vs. the heap etc.
That being said. Code itself is quite clean, and logically laid out. I won’t comment on exact functionality, but hopping in I felt pretty clear on what your robot does and how it fits together. I didn’t see anything architecturally that looked completely off in the weeds.
That being said, I saw exactly zero code comments. Would be nice to help with understanding.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.