Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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)
  {

  }
}