I am having problems when I program my Vex V5 ClawBot.
Every thing is connected correctly and it claims that the brain is not connected, How may I fix this problem?
When programming in the competition templet either when the claw motor is up or down the motor goes down. Does anyone know why this is happening and what I can do to fix it?
When you say the claw motor is up or down are you referring to the arm being up or down, or claw being open or closed.
As for the Brain Connection issue, are you connected directly to the brain via USB, or via the controller (make sure itâs paired to the V5). Try another cable or wiggling the connector a bit, works for me sometimes with cables with bad connectors.
I am referring to the arm motor. The arm goes down even when I increase the torque or reverse the spinning of the motor. It does matter whether the program is up or down the robot arm goes down.
I am connecting via USB, using the cable from port 6 and connecting to the vex controller, controller to computer.
Also I am having issues when I start the program sometimes it does start, it just sits there with a black screen like it would be running the program.
It is possible that your arm is too heavy for the motor to lift up. What motor cartridge are you using?
Try taking the motor off to see if it actually spins backwards, or connect another motor to the same port to check that the program is actually doing what itâs supposed to.
You probably want to move the code from âwhen startedâ to âwhen driver controlâ as your code is currently in the initialize section (Pre-Autonomous). This code is meant for things like calibrating sensors or setting a motor position.
It can not be possible because if that was the problem, when in driver control the arm wouldnât move. It is only in program mode that the arm doesnât move up.
If you mean the arm doesnât work in autonomous it is because you havenât put any code there apart from setting torque.
Also make sure to actually move your code to the autonomous or driver control section (probably autonomous) as the only code that should be in âWhen Startedâ is initialization code.
Add some code under the âWhen Autonomousâ hat. setting max torque will not move the motor, it only tells the motor what the maximum amount of torque (pushing power) is that it can use, max is 100% (and is the default).
Use setVelocity and spin blocks to move the motor.
Move your driver control code under the âWhen Driverâ hat
As @jpearman the max value you can set torque to is 100 (itâs a percentage) also you do not need any of the code in âwhen driver controlâ as itâs already in the initialize section.
You have to run it in match mode, when you select it on the controller do not press play immediately, select the icon which has trophy icon to run it.
Edit: The reason you need to do this is because the autonomous code only gets executed when connected to a field controller or running in match mode and is set to autonomous.