there are some issues using
in our German forum.
To turn a vehicle (tribot etc) on the spot my suggestion was for 360Â° of each single motor axle (B, C)
RotateMotorEx(OUT_BC, 50, 360, -100, true, true); // robot turns clockwise
RotateMotorEx(OUT_BC, -50, -360, -100, true, true); // robot turns counterclockwise
But I've been told that I should be wrong.
Am I really?
what actally means
turnpct = 0? 0% synched=no sync = both motors running independently? or 2nd motor stands still?
turnpct = +/- 100? +100=100% exact sync? -100= 100% negative synched (inverse) rotation?
turnpct = +/- 50? half amount of rotation of the 2nd motor related to the 1st one?
It's not very well ducumented...
But at least just found out that there is a German language Mindstorms forum called mindstormsforum.de, correct?
Thanks for the info.
it seemes to work the following way, but this would be REALLY WEIRD AND ODD:
Code: Select all
RotateMotorEx(OUT_AB, 60, 360, -100, true, true); RotateMotorEx(OUT_AB, 60, 360, 100, true, true);
With turnpct = +100% both wheels should be turning 100% into the same direction.
Or does it work this way nevertheless? What are the right definitions like?
RobotC is making it more clearly using a master motor and a slave motor!
http://bricxcc.sourceforge.net/nbc/nxcd ... 445c4ad3fe
That's all there is to say about this parameter. The firmware does not handle non-zero turn percentages perfectly.
Code: Select all
turn ratio There are only three valid combinations of left and right motors for use with TurnRatioField: OUT_AB, OUT_BC, and OUT_AC. In each of these three options the first motor listed is considered to be the left motor and the second motor is the right motor, regardless of the physical configuration of the robot. Negative turn ratio values shift power toward the left motor while positive values shift power toward the right motor. An absolute value of 50 usually results in one motor stopping. An absolute value of 100 usually results in two motors turning in opposite directions at equal power.
I hope you've recovered well from the floods! :)
Users browsing this forum: No registered users and 12 guests