Hw to run 2 servo motor at different speed in single command
Posted: 20 Sep 2011, 15:01
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,
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,