Comments (4)
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.
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.
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.
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)
- Assistance required during installation process HOT 26
- Problems with installing nxt-python HOT 4
- Error when connecting with bluetooth HOT 24
- raise BlockedException("Blocked!") HOT 1
- Error struct.error: unpack requires a buffer of 2 bytes (EV3) HOT 4
- No backend available HOT 1
- Help with motorconotrl HOT 1
- Not able to download MotorControl22.nxc to NXT HOT 2
- nxt_filer needs to be updated (minor fixes) HOT 3
- usb.core.USBError: [Errno None] b'libusb0-dll:err [set_configuration] could not set config 1 HOT 7
- Add contribution guide HOT 2
- Hitechnic SuperPro Board HOT 7
- How save in the lego HOT 1
- Nxt_test hangs at connecting using bluetooth HOT 1
- MotCont: Differential drive robot HOT 4
- Bluetooth Error HOT 12
- EV3 doesn´t connect to NXT (via USB) HOT 5
- simulate NXT brick button presses with nxt-python HOT 4
- [FEATURE REQUEST]: Screen Drawing HOT 1
- [NOOB QUESTION]: How to get rotation angle of motor? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nxt-python.