Unofficial Response to "X-Drive Program Problem"

Original Thread

#pragma config(Motor, port1, leftfront, tmotorVex393_HBridge, openLoop)
#pragma config(Motor, port7, rightfront, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port8, leftrear, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port9, rightrear, tmotorVex393_MC29, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//

task main()
{

//x-drive

while (1==1)
{
motor[leftfront] = vexRT[Ch3] + vexRT[Ch1] - vexRT[Ch4];
motor[rightfront] = vexRT[Ch3] - vexRT[Ch1] + vexRT[Ch4];
motor[leftrear] = vexRT[Ch3] + vexRT[Ch1] + vexRT[Ch4];
motor[rightrear] = vexRT[Ch3] - vexRT[Ch1] - vexRT[Ch4];
}
}

This should work @Princesserin
You forgot brackets around the While block

Edit- I accidentally put the second bracket before the while- fixed

{<--//what are thees for?
while (1==1)

motor[leftfront] = vexRT[Ch3] + vexRT[Ch1] - vexRT[Ch4];
motor[rightfront] = vexRT[Ch3] - vexRT[Ch1] + vexRT[Ch4];
motor[leftrear] = vexRT[Ch3] + vexRT[Ch1] + vexRT[Ch4];
motor[rightrear] = vexRT[Ch3] - vexRT[Ch1] - vexRT[Ch4];
}<--

Linky link

Okay so this still won’t work. The brackets need to be after the while loop

While (1==1){
Code
}

I fixed it, I put it in the wrong spot

Thanks guys! I had to put the bracket behind While (1==1). Just like Griffin said. So thanks again this saved us from rebuilding our base again. Seriously though, I can’t say thanks enough!