Page 1 of 1

Hw to run 2 servo motor at different speed in single command

Posted: 20 Sep 2011, 15:01
by vinodkumarj
Hi,
I am new to NXC. I would like to give different speed to 2 different motor in a single command. I could see in OnFwd command in the help. Where it says "If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function". I am not able to use a array in the program. Kindly someone through some light on this.
Thanks in advance,

Re: Hw to run 2 servo motor at different speed in single command

Posted: 20 Sep 2011, 15:59
by afanofosc
So why do you want to run 2 motors at different speeds in a single command? Why not just use 2 commands to run 2 motors at different speeds? As far as I know, the firmware does not support setting 2 different speed values for 2 different motors in a single operation.

John Hansen