Anders Søborg

Forum Replies Created

Viewing 15 posts - 136 through 150 (of 411 total)
  • Author
    Posts
  • in reply to: Problems with the Gyrosensor #4849
    Author Image
    Anders Søborg
    Keymaster

    Hi 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

    in reply to: Unable to Connect with the MonoBrick Remote for Android #4847
    Author Image
    Anders Søborg
    Keymaster

    Hi

    No sorry I have been working on the EV3 firmware.

    Anders

    in reply to: controlling the engine #4845
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

    in reply to: controlling the engine #4843
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

    in reply to: controlling the engine #4841
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

    in reply to: controlling the engine #4840
    Author Image
    Anders Søborg
    Keymaster

    Hi

    Have a look at this example. You might need to tune the P, I and D values to get the desired response…

    /Anders

    in reply to: How to send Number to EV3 via Mailbox #4838
    Author Image
    Anders Søborg
    Keymaster

    Hi

    Why are you doing a reverse of the array?

    /Anders

    in reply to: combining monobrick with robotc on nxt #4837
    Author Image
    Anders Søborg
    Keymaster

    Hi 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

    in reply to: Failed to receive image data #4836
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

    in reply to: Lcd extensions #4820
    Author Image
    Anders Søborg
    Keymaster

    Hi 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

    in reply to: Temeplate for Monobrick #4817
    Author Image
    Anders Søborg
    Keymaster

    Hi Max

    How is the guide coming along?

    /Anders

    in reply to: controlling the engine #4816
    Author Image
    Anders Søborg
    Keymaster

    Hi

    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

    in reply to: SignalR on Monobrick #4815
    Author Image
    Anders Søborg
    Keymaster

    Hi 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

    in reply to: Can the color sensor detect orange? #4814
    Author Image
    Anders Søborg
    Keymaster

    Hi

    The page Max is referring to is the NXT color sensor. The EV3 color documentation can be found here

    /Anders

    in reply to: Trying to run a program(doesn't work) #4804
    Author Image
    Anders Søborg
    Keymaster

    Hi 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

Viewing 15 posts - 136 through 150 (of 411 total)
Posted in

Make a donation