Code Monkey home page Code Monkey logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
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 [email protected] on 15 Oct 2012 at 8:15

  • Changed state: WontFix

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
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 [email protected] on 15 Oct 2012 at 10:03

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
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 [email protected] on 15 Oct 2012 at 10:10

from nxt-python.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 5, 2024
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 [email protected] on 16 Oct 2012 at 10:55

from nxt-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.