Closed GoogleCodeExporter closed 9 years ago
nxt.motcont provides a wrapper for MotorControl commands. If you actually read
the quote you posted, it directs you to send a SetOutputState command directly
to the motor via the NXT firmware interface. This means nxt.Motor(b,
nxt.PORT_A).idle() or .brake(). MotorControl has no command-type for canceling
a previous command, and as a result we do not wrap it in nxt.motcont. Sorry
about that...
Original comment by marcus@wanners.net
on 15 Oct 2012 at 8:15
sorry: this works. it is the command
motcont.reset_tacho(port)
Question: what is the way, in motcont, of having a car moving forward and
turning smoothly left and right?
the motors stops after every command.
Also, when syncronized, they seem to move only forward: one can't set a ratio,
can he?
I mean, if one gives two separate commands, how can both motors stop naturally
at the same time (I mean, with no brutal interruptions).
thanks!
Original comment by Andrea.G...@gmail.com
on 15 Oct 2012 at 10:03
sorry, I did not read your reply before posting mine.
So it is not dangerous to use both motor and motcontrol (I mean danger of
confusing motcontrol).
I see, so "motor" and "motcont" are needed together to fully control the motors
/ cancel orders.
Marcus, thanks for your reply. Can you please advise on what is the best way to
drive motors smoothly, so that they do not stop while one adjusts the ratio
between A and C, to turn slightly while moving forward with a car?
thanks!
I am happy to help in testing or drafting some code, if you wish.
Original comment by Andrea.G...@gmail.com
on 15 Oct 2012 at 10:10
Actually motcont.reset_tacho(port)
does not work as well as I worte above: the motor stops but motorcontrol
"beeps".
motor.idle() works, however it does not reset the interval in motcont, so one
can't send a command to mocont immediately after idle()
the best is to wait for motcont to say that the motor is_ready again.
(unfortunately, this is not super fast on Bluetooth, so it does not work too
well in trying to create smooth motor movements.)
Original comment by Andrea.G...@gmail.com
on 16 Oct 2012 at 10:55
Original issue reported on code.google.com by
Andrea.G...@gmail.com
on 15 Oct 2012 at 7:23