Throughout the competition I’m participating in, I’ve have a problem with my autonomous. It runs for too long and only stops at the 15 second mark though it’s not supposed to do that. Here’s my code:
task autonomous()
{
motor[port6] = 127;
motor[port5] = -127;
wait1Msec(1500);
motor[port6] = -127;
motor[port5] = 127;
wait1Msec(1250);
}
The specific problem I’m occurring is the part where the port6 Motor is set to -127 and the port5 Motor is set to 127. I set that function to run for a second and a quarter but for some reason it runs for the whole duration of the autonomous round.
If anybody can dissect this and tell me what’s wrong I’d be glad. Thank you OWO