Page 1 of 1

NXC - How to Mirror or Reflect Synced Motors ??

Posted: 02 Jul 2013, 18:02
by b-trueman
Hi,
I'm a newbie to NXC and I'm looking for some advice on how to sync 2 motors that operate "mirrored".
For example; motor 1 rotates from 0 to 180 degrees in sync with motor 2 that rotates back from 180 to 0 degrees.

I noticed that RobotC has a "reflected" or "mirrored" motor control option, but I can't seem to find similar methods using NXC.

Your guidance would be appreciated.

cheers, Brian

Re: NXC - How to Mirror or Reflect Synced Motors ??

Posted: 03 Jul 2013, 05:26
by felix2ch
You can use RotateMotorEx OnRevSync OnFwdSync etc...
And set turnpct to 100 or -100.

Re: NXC - How to Mirror or Reflect Synced Motors ??

Posted: 03 Jul 2013, 14:28
by b-trueman
thanks !! I'll check those out
Brian