We’ve been having this issue with our robot where for seemingly no apparent reason, our computer will disconnect from our robot at random times. The computer will completely disconnect from the radio and everything.
At first we thought it was an update so we reflashed the firmware to both the roboRIO and radio. That didn’t solve it. We then assumed a wire issue, but nope. We disassembled and reassembled the robot twice to no avail. We’ve put the robot on a table and propped it up so the wheels didn’t touch the floor and ran the robot then, and even with only the wheels moving it still happens.
We’ve had the robot disconnect immediately after enabling, and had it run for 20+ minutes without it disabling, but eventually it disables. We try doing runs without moving it, and runs where we don’t stop moving the wheels. Both times it disconnects.
We’ve tried different laptops, different firmware, different wires. different radio, different batteries, different roboRIO, different fuses, and all seem to result in the same thing.
We have noticed that the swerve modules will suddenly draw tons of power (160 AMPS) and brownout which cases it sometimes, but other times it wont brownout at all and disconnect.
Some things to note:
- We’re using swerve drive
- We’re using Spark Max motor controllers
- We’ve had the same error occur both connected via WiFi and USB
I’m a coder and have been doing it for 2 years, so I consider myself sort of a newbie but even our most experienced coders have been stumped. Any help would be wonderful. Thank you!
(P.S. I’ve seen other threads with other similar questions but all get locked after a year with no answer.)
Edit: In some runs, it seems to brownout early on but doesn’t disconnect until later.
This is the thing driver station said when it crashed
And sometimes it shows this error: