Could code cause a communications error?

We had an issue today of communication. The robot would disconnect after a few seconds no matter what. We updated and used the defaut myRobot file and it is fixed. The cause is believed to be jointly a corrupted v27 update and possibly an error in our program, which is here.

Is it possible for a program to create an issue like this, and if so, is our program at fault? The program is a work in progress, but if you see any other mistakes please point them out.

Your code looks fine, and while code can frequently fail to run (which can be mistaken for a No Robot Code error) or cause watchdog timeouts - I don’t think code can cause a communication error.

I would highly recommend reimaging.