Recently with my team at school, we were at a skirmish with some other teams, and most of us noticed our integrated encoders were red or yellow. Now we have gotten back to working on autonomous and all three integrated encoders( both back right, back left, and the arm encoder) have resulted to remaining yellow. We have tried:
1.Taking the wires and switching them:wires are not bad.
2.Swapping cortexes with the same IMEs:same result.
3. Using IMEs from another teams robot: The cortex is not bad.
Could it be that 4 IMEs have failed at the same time? And is there a way to fix the yellow light?
My motor config code:
#pragma config(UART_Usage, UART2, uartNotUsed, baudRate4800, IOPins, None, None)
#pragma config(I2C_Usage, I2C1, i2cSensors)
#pragma config(Sensor, dgtl4, Solenoid2, sensorDigitalOut)
#pragma config(Sensor, dgtl5, Solenoid1, sensorDigitalOut)
#pragma config(Sensor, dgtl9, switch1, sensorTouch)
#pragma config(Sensor, dgtl10, switch2, sensorTouch)
#pragma config(Sensor, dgtl11, switch3, sensorTouch)
#pragma config(Sensor, dgtl12, buddyswitch, sensorTouch)
#pragma config(Sensor, I2C_1, backleft, sensorQuadEncoderOnI2CPort, , AutoAssign)
#pragma config(Sensor, I2C_2, backright, sensorQuadEncoderOnI2CPort, , AutoAssign)
#pragma config(Sensor, I2C_3, armencoder, sensorQuadEncoderOnI2CPort, , AutoAssign)
#pragma config(Motor, port1, leftintake, tmotorVex393, openLoop)
#pragma config(Motor, port2, backright, tmotorVex393, openLoop, reversed, encoder, encoderPort, I2C_2, 1000)
#pragma config(Motor, port3, backleft, tmotorVex393, openLoop, encoder, encoderPort, I2C_1, 1000)
#pragma config(Motor, port4, armleft1, tmotorVex393, openLoop, reversed)
#pragma config(Motor, port5, armright1, tmotorVex393, openLoop)
#pragma config(Motor, port6, armright2, tmotorVex393, openLoop, reversed)
#pragma config(Motor, port7, armleft2, tmotorVex393, openLoop, encoder, encoderPort, I2C_3, 1000)
#pragma config(Motor, port8, frontright, tmotorVex393, openLoop, reversed)
#pragma config(Motor, port9, frontleft, tmotorVex393, openLoop)
#pragma config(Motor, port10, rightintake, tmotorVex393, openLoop, reversed)
Normal operation is not affected, but autonomous is destroyed without the encoders.