Plz check and test my code. I don't have the brain with me.

#include “robot-config.h”

vex::motor ::Backleftmotor (vex::PORT1, vex::gearSetting::ratio18_1,true);
vex::motor ::Backrightmotor (vex::PORT2, vex::gearSetting::ratio18_1,true);
vex::motor ::Arm1 (vex::PORT3(vex::PORT3,gearSetting::ratio18_1,true);
vex::motor ::Arm2 (vex::PORT4(vex::PORT4,gearSetting::ratio18_1,true);
vex::motor ::Claw1 (vex::PORT5(vex::PORT5,gearSetting::ratio18_1,true);
vex::motor ::CLaw2 (vex::PORT6(vex::PORT6,gearSetting::ratio18_1,true);
int main(){

while(true)
{

Backleftmotor.spin(vex::directionType::fwd, Controller1.Axis3.value()/2, vex::velocityUnits::pct); //Tank Control : Motor runs at half speed
Backrightmotor.spin(vex::directionType::fwd, Controller1.Axis2.value()/2, vex::velocityUnits::pct); //Tank Control : Motor runs at half speed
}

if(Controller1.ButtonX.pressing())
{
Arm1.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);

} //This is the code for arm1

else if(Controller1.ButtonB.pressing())
{
Arm1.spin(vex::directionType::rev,100,vex::velocityUnits::pct);
}
//This is the code for Arm2

if(Controller1.ButtonX.pressing())
{
Arm2.spin(vex::directionType::fwd,100,vex::velocityUnits::pct);
}

else if (Controller1.ButtonB.pressing())
{
Arm2.spin(vex::directionType::rev,100,vex::velocityUnits::pct);
}

if(Controller1.ButtonR1.pressing())
{
Claw1.spin(vex::directionType::fwd,100,vex::velocityUnits::pct);
} //This is the code for Claw 1
else if(Controller1.ButtonR2.pressing())
{
Claw1.spin(vex::directionType::rev,100,vex::velocityUnits::pct);
}

if(Controller1.ButtonR1.pressing())
{
Claw2.spin(vex::directionType::fwd,100,vex::velocityUnits::pct);
}
//This is the code for Claw2
else if(Controller1.ButtonR2.pressing())
{
Claw2.spin(vex::directionType::rev,100,vex::velocityUnits::pct);
}
}

Please don’t make duplicate threads unless you have a good reason to do so.

Not getting a response in the first thread is not a good reason to make a duplicate thread.

+0.5, but I’m not sure this would really be a “duplicate thread” per se. The first was asking for a very specific line section to be checked, and this asks for a test. Is it probably too close to post another thread? Yes. Is it technically a duplicate thread? I don’t think so.
Seeing as @DRow hasn’t deleted it yet, I think it’s probably borderline okay. I think he would like to reduce these types of threads, but there are just enough differences that it’s okay. Right?

EDIT: Watch Drow delete this soon, and I will feel bad.

I was referring to this thread:

I couldn’t find a single meaningful difference (admittedly I didn’t compare the posted code in great detail).

Ammitedly my bad. Actually, I thought that this was the exact same thread as the one you linked, just that it now got a post. I was referring to another thread that was about asking if a config statement was written correctly. You are totally right. Also, to add to your points, it’s only been a couple of days since that original post.

To actually get back on topic for the OP, I have tried this. I’ve given you my error messages I’ve gotten, and I think it’s due to my not being able to completely set up the robot configuration screen correctly.