our team is having a problem where our code will stop randomly in both matches and skills. it doesn’t happen in any specific pattern and it doesn’t seem to have a problem with one specific line or anything. it isn’t getting stuck on anything and its happening across all our different programs, so we’re pretty sure it’s not a problem with how the code is written itself (we use block btw). we also tried switching out the brain and the cord that connects the battery to the brain and it was neither of those either. if you’ve got any thoughts at all we’d love any suggestions. **
1 Like
does your controller say “robot connection lost” whenever it happens?
nope it doesn’t say anything. it just stops.
1 Like
can you post your code?
The first thing I could think of is the robot could possibly be getting stuck on something causing its task not to be finished, thus stopping the program entirely.
Second, you radio might be surrounded by metal causing the radios strength to be very weak. To solve this issue my team attaches the radio to standoffs connected to the robot.
2 Likes
try the motor timeout thing, or print on the brain after every command, so you know when it went wrong
2 Likes