Hello, we are using motion magic on an arm (called lift in the code) and wrist on our robot. A few times now we’ve gotten a Watchdog Not Fed error which causes the entire arm to come crashing down. It then hurriedly corrects itself and everyone spins towards the driver and says “What did you press??!!”.
I’m not sure if this is due to a brownout or if there’s enough inefficiency in our codebase that something is failing.
I’m the lead programming mentor on the team, but have only worked with Java for two years. I was hoping some more experienced programmers could take a minute or two and look at our code. We’ve coded this using a lot of assumptions on how Java works, but we’re sure there’s probably errors in how we’re doing things as our code gets more complex.
Any suggestions to improve this codebase or to squash whatever bug is causing this problem would be much appreciated: