Comments (4)
This is done by the firmware, you can find the related code in https://git.ni.fr.eu.org/nxt-firmware.git/tree/AT91SAM7S256/Source/d_output.c?h=1.29.2
For a differential drive robot, what I find is the best method is to control the sum and the difference of the tacho of the two motors. The sum controls linear movement while the difference controls angular movement. This allows to drive really straight.
If you change MotorControl to implement this, that would be great!
I suppose you have this yet: https://github.com/schodet/MotorControl
from nxt-python.
I suppose you have this yet: https://github.com/schodet/MotorControl
Yes i have been using MotorControl for some days now! It is indeed really useful for precise motor control.
Thank you very much for the information, i will be working on this in the following weeks.
If you change MotorControl to implement this, that would be great!
I will try to make something generic that might be useful for motor control and if so i will contribute to the repository!
from nxt-python.
I do not think that MotorControl support the turn ratio. This would be an interesting feature to add.
You can use nxt.motor.SynchronizedMotors, but the regulation is not that good. Give it a try.
from nxt-python.
Thank you!
To be honest, I would prefer to have precise control of the motors, that's why i went with motcont. I am trying to find a way to implement a turn ratio, i will share the results if it works well. If it doesn't, i will probably revert to doing simple turns by using only one motor each time or use nxt.motor.SynchronizedMotors.
If it isn't too much trouble, could you provide a general high level explanation of how turn ratio is implemented in nxt.motor.SynchronizedMotors? By examining the code i can only get to the point where the turn ratio is passed in the state? Is it handled internally in the nxt somehow?
from nxt-python.
Related Issues (20)
- Tester on Windows wanted HOT 11
- Tester on mac OS wanted HOT 15
- 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
- Bluetooth Error HOT 12
- EV3 doesn´t connect to NXT (via USB) HOT 5
- simulate NXT brick button presses with nxt-python 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.