Motors only work in Port 2

Motor only works in Port 2, have verify all motors are good by moving them to port 2. Reloaded all firmware and program, no change. Printed computer code and retype it in to a new template no change. Open up a brand new cortex and down loaded current firmware and program no change. Reloaded firmware in joystick no change, change joysticks to a known good one no change. Have no idea what to try next. Any input would be appreciated.

MC

The issue is probably with your code. Post it here so the community can better help you.

Lots and lots of splitters

Attached is the code
grace.docx (13.2 KB)

Well you can’t Y off a Y, so the maximum amount of motors you could use is 2 (4 if you use a power expander)

I’m no coder, but your code looks almost exactly like mine.

Simple error, right here

 while (true)
	motor[port2] = vexRT[Ch2];
	motor[port1] = vexRT[Ch2];
	motor[port4] = vexRT[Ch3];
	motor[port5] = vexRT[Ch3];

your while loop has no brackets at the start so its infinitely running the motor[port2] part. Change to this.


while (true)
{
	motor[port2] = vexRT[Ch2];
	motor[port1] = vexRT[Ch2];
	motor[port4] = vexRT[Ch3];
	motor[port5] = vexRT[Ch3];

	if(vexRT[Btn7U] == 1)
	{motor[MobileGoalA] = 40;}
	else if(vexRT[Btn7D] == 1)
	{motor[MobileGoalA] = -40;}
	else
	{motor[MobileGoalA] = 0;}
	if(vexRT[Btn8U] == 1)
	{motor[MobileGoalB] = 40;}
	else if(vexRT[Btn8D] == 1)
	{motor[MobileGoalB] = -40;}
	else
	{motor[MobileGoalB] = 0;}
}

Also why so many comments??

I believe the comments are because they are just trying to get the motors to work and don’t know how to mass comment