...
Code Block |
---|
task main() { motor[motorB] = 100; motor[motorC] = 100; wait1Msec(10000); } |
Code Block |
---|
task main()
{
nMotorEncoder[motorB] = 0;
nMotorEncoder[motorC] = 0;
nMotorEncoderTarget[motorB] = 1800;
nMotorEncoderTarget[motorC] = 1800;
motor[motorC] = 50;
motor[motorB] = 50;
while(nMotorRunState[motorB] != runStateIdle || nMotorRunState[motorC] != runStateIdle)
{
}
}
|