View unanswered posts | View active topics It is currently Sat Apr 19, 2014 6:24 pm






Reply to topic  [ 2 posts ] 
Has nSyncedMotors Stopped working? 
Author Message
Novice

Joined: Fri Jan 18, 2008 11:07 pm
Posts: 51
Location: Ohio
Post Has nSyncedMotors Stopped working?
For some reason, nSyncedMotors stopped working in 3.51. I get this error:
**Error**:Variable 'nSyncedMotors' is subsequently used as a procedure

Then the "syncAB" returns an error as well
**Error**:Undefined variable 'syncAB'. 'short' assumed.

Has this been changed/eliminated or is it just not working? I opened a program that worked fine with the last version.


Sun Oct 28, 2012 5:23 pm
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 592
Post Re: Has nSyncedMotors Stopped working?
I've confirmed the follow program is working in our latest build of ROBOTC.

Code:
task main()
{

  nSyncedMotors = synchBC; //motor B is the master, motor C is the slave
  nSyncedTurnRatio = 100; //motors move at 100% alignment to each other

  motor[motorB] = 30; //turn motor B on, which controls motor C at 30% power
  wait1Msec(2000);  // wait for two seconds

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

}

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Mon Oct 29, 2012 9:45 am
Profile
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.