Tetrix motors run with NXT-G but not with RobotC
I don't have the full FTC kit yet (ordered), but I do have 2 NXT's, a Tetrix kit (blue box), the DC Motor controller, Servo controller, and one Motor encoder.
I'm running NXT-G v. 2.0 on one NXT and RobotC 1.46 on the other NXT, (not at the same time)
When I run NXT-G I can get DC motors and servos to respond. When I run RobotC, I can get motors A, B, and C to respond, but not D, E, or the servos.
I have turned PID off since I only have one encoder. The encoder is on Motor 1 and plugged into Enc1. Port 1 of the NXT is connected to the Motor controller first, just like on page 18 of the Tetrix manual, plus a second motor and servo, and an NXT motor in port A.
I have switched the NXT's and re-downloaded appropriate firmware, so it's not a bad NXT or wire.
Here's one of several code attempts, copied directly from the webinar, with all the joystick stuff deleted since I don't have that yet. Motor A works, D and E do not. (Obviously no servos in this code.)
#pragma config(Hubs, S1, HTMotor, HTServo, none, none)
#pragma config(Motor, motorA, , tmotorNormal, PIDControl)
#pragma config(Motor, mtr_S1_C1_1, motorD, tmotorNormal, openLoop)
#pragma config(Motor, mtr_S1_C1_2, motorE, tmotorNormal, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
while(time1[T1] < 10000)
motor[motorA] = 50;
motor[motorD] = 50;
motor[motorE] = 50;
It's got to be something embarrassingly silly, but I'm just not seeing what is wrong.