Well this might be a weird question but at the last tournement one of our drivetrain motors stopped working and it kinda took us a while to understand the problem and i ve wondered if there is a way to understand that the motor disconnected soo is there a code like Motor.disconnected or something like that.
I would suggest just testing between matches
I have experimented with a program to adjust the speeds of the motors so we can drive straight even if a motor goes out. To detect when a motor is disconnected, I have several if statements in my main driving loop that get the voltage of all the motors. I define a variable as the integer overflow number, and if the voltage is equal to integer overflow, I know the motor is not running correctly. This is a bit jank, but in my experience it works well when detecting if motors are connected or not.
well of course thats a way to solve it but in our last tournement our schedul was a bit tight
thankss while searching for an answer i found that there is a code to actually understand if a motor disconnected though i couldn’t test it yet. If u wanna take look here is the link to the page
https://www.robotmesh.com/studio/content/docs/vexv5-cpp/html/classvex_1_1motor.html
vex::motor installed()
See this topic from a few days ago. Please remember to use the search feature.
also
You are linking to the now obsolete and unsupported RobotMesh API. While it has some similarities to the current VEXcode API, it’s probably not a good thing to use or rely on.
I must have missed this thread while searching. This helped a lot and thanks for explaining!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.