View unanswered posts | View active topics It is currently Thu Dec 25, 2014 8:41 am






Reply to topic  [ 2 posts ] 
Does nSyncedMotors Work in Virutal Worlds 
Author Message
Rookie

Joined: Sat Oct 01, 2011 11:02 pm
Posts: 1
Post 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.

}


Sat Oct 01, 2011 11:07 pm
Profile
Rookie
User avatar

Joined: Mon Feb 14, 2011 10:37 am
Posts: 49
Location: The Pitts(burgh)
Post 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.

_________________
Robot Virtual Worlds Technical Lead
Robotics Academy - CMU


Mon Oct 03, 2011 10:13 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.