Code: #pragma config(I2C_Usage, I2C1, i2cSensors) #pragma config(Sensor, I2C_1, , sensorQuadEncoderOnI2CPort, , AutoAssign) #pragma config(Motor, port1, Right, tmotorVex393, openLoop) #pragma config(Motor, port4, Shooter, tmotorVex393, openLoop, encoder, encoderPort, I2C_1, 1000) #pragma config(Motor, port5, Arm, tmotorVex393, openLoop) #pragma config(Motor, port10, Left, tmotorVex393, openLoop) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main() { while(1) { while(vexRT[btn8R] == 1) motor[Arm] = 127; while(vexRT[btn8D] == 1) motor[Arm] = -65; motor[Arm] = 0; } }
|