Our class is using Robotmesh’s python platform on a set of modified clawbots, and no matter the complexity of our code, and no matter which of the 6 cortex/controllers we use (via USB or wireless), we occasionally get failure causing the robot to freeze with whatever current motor.run values were last given. When this failure occurs, the Robot light on the cortex blinks red slowly, but the vexNET light remains green, which I understand to be a user programming error. I can never recreate an error and they tend to happen once every 5 to 10 minutes of operation. These errors are most likely to happen during moments of change, like during a turn, or when an arm is going up or coming down, but sometimes occurs when the robot is not moving at all.
The default programming does not cause this error, but every time I have written code involving an “if” statement or a calculation (like arcade drive), this error is liable to pop up. No encoders or sensors of any type are being used in our robots.
I have searched over other threads dating as far back as 2011 for information relevant, and none seem to address my issue, so I am left with what I believe to be two current options: Find the source of the error, or learn how to write code that can handle exceptions (if that can be done in PROS or Robotmesh).
If you would like to make your project public and send us the name or project number, we would be happy to look at your code and make recommendations. To make a project public, open it, click on the “Options” gear, and change privacy to “Public Project (including code)”. Even if your project is public, others cannot edit your code. You can send us an email at support@robotmesh.com when your project is ready…