Forum Replies Created
-
AuthorPosts
-
Anders SøborgKeymasterHi Rich
Where are you getting your information about how to communicate with the devices?
For this part I looked in the source for the EV3 and the source for LeJos…
It looks like you are trying to read a byte, clear a bit, and then write it back. However you are not reading and writing from the same place. You are reading from “port” and writing to “UartStatusOffset+port”
I will have a look at this tonigh
Anders
Anders SøborgKeymasterHi Jacek
What about gyro sensor calibration? or gyro sensor offset calculation? Could you describe the result or maybe record a video?
Anders
Anders SøborgKeymasterHi Martin
Once you have a created a fork – please use a pull request to get your contribution into the “official” repository… try to search youTube for a tutorial on this if you have never done it before. Don’t worry about it we will see how it goes…
Anders
Anders SøborgKeymasterHi Jacek
There are a few things that I have noticed about your code.
You are using decimals – why? I can’t tell for sure but on this hardware it might not be the best approach if you want fast calculations.
You are using a thread.sleep in your control loop – On Windows the minimum sleep time is something like 20-30 ms – what it is on the EV3′s ARM processor I am not aware off but you could do some measurements to find out. But Thread.Sleep is not guaranteed to sleep for exactly the specified amount of time. That leads me to the next question.” What performance are you getting”? Are your control loop running a a constant rate? Is it running at the rate you except? All the constants what you have are not correct if you run with a different sample time that the “original” LAB view program
Anders
Anders SøborgKeymasterHi
JacekThe sensor problem has been fixed see this post. Download the lastest DLL to get the fix
Anders
Anders SøborgKeymasterHi Rick
Thanks for the input – it turned out that you where right. The port number was missing from the write command.
The fix has been committed. I am so excited that help from the community can help the development of Firmware. Basically you should have had the honor of committing this yourself using a pull request (I hope you are ok with that).
I guess a new DLL should be uploaded….
Thanks a lot
Anders
Anders SøborgKeymasterHi Rich
This is a serious bug that I am trying to resolve at the moment. Hopefully I will have it fixed tonight or maybe tomorrow. However the error only applies for UART Sensor so Analog and I2C sensor work on all ports… We will upload a new DLL and Image within a few weeks with a bunch of fixes and new features…. to get the latest and greatest you should (as you have already done) compile your own from the github repository…
Anders
Anders SøborgKeymasterHi Jacek
Keep up the good work
Anders
Anders SøborgKeymasterHi Rick
I completely forgot to thank you for your input and bug findings… but as I said I will have a look at motor class in the next couple of days and your findings will be usefull…
Anders
Anders SøborgKeymasterHi
Please don’t use setpower use on instead
Anders
Anders SøborgKeymasterHi all
Thanks for taking part in this discussion. The motor functions/Interface will be changed in a couple of days. Our own PID controller will be used for position movement instead of the kernel profiles that is currently used. I will post a message in this thread to let you know when it is available. Then you can grab it from github…
Anders
Anders SøborgKeymasterHi
Thanks for trying the library
Use the test project this has included the source files from the library…
To add a library to Visual Studio 2010 try following this guide
Anders
Anders SøborgKeymasterHi
If things are not working for you please write a detailed description of what you did and what failed – otherwise it is hard to help!
If you what USB to work are you able to write
lsusb|grep Lego
and see the NXT?
If you are using Bluetooth for the NXT then not all Bluetooth devices are compatible. Try the use google to find the list and see if your device is on….
Anders
Anders SøborgKeymasterHi Jacek
We really really appreciate all your hard work on getting your project up and running – it is a great thing that you report errors/bugs on github. I have been sick the last week so I haven’t been able to look at the issues – but I will look into it once I am well.
However I am not sure I understand what you mean by
Second is that I don’t know how to use motor methods to simulate “unregulated motor” block.
Anders
Anders SøborgKeymasterHi Tomas
Thanks for posting this. I am sure it will be helpfull for others…
Anders
-
AuthorPosts
Follow