Timeout issues

I’ve been having issues with the teleop system for my team’s robot. The major problem is that setting the mode variable (which is loaded from the dashboard) to 2 causes a cascading series of watchdog failures. This could be, I believe, due to me pushing the amount of time used over its limit only when that happens. My coding style is bizarre (Teleop is dominated by one big formula node) and I am not the best at optimizing, so the problem is most likely pretty obvious. My project is attached.

Could somebody help?

2013 Robot 2WK1.zip (4.02 MB)


2013 Robot 2WK1.zip (4.02 MB)

For some strange reason i cannot open the ZIP file.

Can you describe the problem in more detail than “a cascading series of watchdog failures”? I don’t see the watchdog enabled anywhere in your software.

It’s very hard for me to read the mix of dataflow and procedural code that you’ve put together, but I don’t see anything obvious in the Nugentmode 2 case that would take significant time.