ROBOTC.net forums
http://robotc.net/forums/

Does nSyncedMotors Work in Virutal Worlds
http://robotc.net/forums/viewtopic.php?f=55&t=3541
Page 1 of 1

Author:  pdhot74 [ Sat Oct 01, 2011 11:07 pm ]
Post subject:  Does nSyncedMotors Work in Virutal Worlds

Can anyone tell me why the following code would not work in virutal worlds? Only one motor fires (motorB) and the other is unresponsive.
Code:
task main()
{

  nSyncedMotors = synchBC; //motor B is the master, motor C is the slave
  nSyncedTurnRatio = -100; //motors move in opposite directions of each other

  motor[motorB] = 30; //turn motor B on, which controls motor C at 30% power
  wait1Msec(500);  // wait for one half second

  motor[motorB] = 0;  // turn the motors off.

}

Author:  Ed Paradis [ Mon Oct 03, 2011 10:13 am ]
Post subject:  Re: Does nSyncedMotors Work in Virutal Worlds

"nSyncedMotors" and the other advanced motor commands available in LEGO Mindstorms and TETRIX versions of ROBOTC are not currently implemented.

The good news is that the motors in the virtual world are perfectly matched, removing some of the requirement for using nSyncedMotors.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/