Rotate 2 motors in opposite direction with RotateMotor
Posted: 28 Jun 2012, 09:11
Hi,
I built my TriPod. i hav attached two light-sensors on the front and I want it to follow a circuit. The inner part is black, the outer part is white.
i use the mutex-variable and the precedes command.
Now, on some event i want the motors to rotate in opposite directions at the same time using "RotateMotor". I find that when the progam goes to "mutex-mode" the "precedes"-command does not do anything".
I did make separate tasks for rotation because i didn't know whether I could use "precedes" to call the RotateMotor-command directly.
So, is there a way to use "RotateMotor" simultaneously in opposite directions using RotateMotor.
Kind Regards,
Merijn
I built my TriPod. i hav attached two light-sensors on the front and I want it to follow a circuit. The inner part is black, the outer part is white.
i use the mutex-variable and the precedes command.
Now, on some event i want the motors to rotate in opposite directions at the same time using "RotateMotor". I find that when the progam goes to "mutex-mode" the "precedes"-command does not do anything".
I did make separate tasks for rotation because i didn't know whether I could use "precedes" to call the RotateMotor-command directly.
So, is there a way to use "RotateMotor" simultaneously in opposite directions using RotateMotor.
Kind Regards,
Merijn