Forum Replies Created
-
AuthorPosts
-
Anders SøborgKeymasterHi David
Use the test project. The trouble is that in the DLL the class is internal (default for C#) and not public. I will update this when I get the time for creating a new library DLL.
/Anders
September 11, 2014 at 07:05 in reply to: Unable to Connect with the MonoBrick Remote for Android #4847
Anders SøborgKeymaster
Anders SøborgKeymasterHi
I think that you are doing something wrong. The code below works fine…
using System; using MonoBrickFirmware; using MonoBrickFirmware.Display.Dialogs; using MonoBrickFirmware.Display; using MonoBrickFirmware.Movement; using System.Threading; namespace MonoBrickHelloWorld { class MainClass { private const float P = 0.8f; private const float I = 1800.1f; private const float D = 0.5f; public static void Main (string[] args) { Motor a = new Motor(MotorPort.OutA); PositionPID PID = new PositionPID(a,1000, true, 50, P,I,D, 500); PID.Run().WaitOne(); LcdConsole.WriteLine(a.GetTachoCount().ToString()); PID = new PositionPID(a,-1000, true, 50, P,I,D, 500); PID.Run().WaitOne(); LcdConsole.WriteLine(a.GetTachoCount().ToString()); } } }
/Anders
Anders SøborgKeymasterHi
I also need the engine to go in reverse(with the engine) in PID, is there anyway I can do that?
Try with minus in front of the target position
/Anders
Anders SøborgKeymasterHi
I am actually a little puzzled by this. I think the reason that you are getting an error over time with the speed Profile is that you are suffering from gear backlash and not that a speed profile is not precise (since it moves to the desired position each time). If in fact that you have an error over timer due to the fact that the motor moves to the wrong position (tacho count) then a simple reset of the tacho should be enough. Could you please provide some more details on why the speed profile is not good enough?
/Anders
Anders SøborgKeymasterHi
Have a look at this example. You might need to tune the P, I and D values to get the desired response…
/Anders
Anders SøborgKeymasterHi
Why are you doing a reverse of the array?
/Anders
Anders SøborgKeymasterHi Tom
No sorry I have not tried that. But it must be possible to see the raw data on both sides and compare the two…
/Anders
Anders SøborgKeymasterHi
Please try and disable all firewalls that might be running. If that still doest’n work allow UDP traffic on the video port that you selected on the phone…
/Anders
Anders SøborgKeymasterHi Vlad
Have a look at this commit thanks a lot for the contribution – I will test it before merging it to the release branch.
/Anders
Anders SøborgKeymasterHi Max
How is the guide coming along?
/Anders
Anders SøborgKeymasterHi
From the documentation that Max already pointed to there is a function called speedProfile which lets you move to a position. An example of this is shown here. Please let us all know how work with your cube solver…
/Anders
Anders SøborgKeymasterHi Stujiro
Updating the Mono version is’t as strait forward as it sound. Unfortunately the Linux kernel found on the current image does not allow us to run the latest Mono version. However we have patched the kernel so a newer version of Mono can be used – but running in AOT mode is giving us some trouble… but when it is ready it will be released. We will keep you posted.
/Anders
Anders SøborgKeymasterHi
The page Max is referring to is the NXT color sensor. The EV3 color documentation can be found here
/Anders
Anders SøborgKeymasterHi Roy
Nice of you to try MonoBrick firmware. Glad you solved your problem. Could you please post your next question in a new thread? This makes it easier for other people to find answers to similar problems.
/Anders
-
AuthorPosts
Follow