
patrick_c#
Hello, i tried to program my EZ Robot with C# under Ubuntu 15.04.
using System; using EZ_B;
public class HelloWorld { public static void Main() { Console.WriteLine("Enter IP of EZ-Robot"); string ip = Console.ReadLine(); Console.WriteLine("IP: "+ip ); Console.WriteLine("trying "+ ip); Console.WriteLine("trying to connect with " +ip);
//connecting
EZB _ezb = new EZB();
_ezb.Connect(ip);
Console.WriteLine("connecting...");
if (_ezb.IsConnected)
{
Console.WriteLine("[+] EZB connected at ip: " + ip);
}
else
{
Console.WriteLine("[-] EZB NOT connected at ip: " + ip);
}
}
}
Thats my code, but if i execute it...
patrick@patrick-X781X-X782X:~/ezrobot$ mono bsp.exe Unknown heap type: #GUlD
Unknown heap type: #Blop
Enter IP of EZ-Robot 192.168.1.1 IP: 192.168.1.1 trying 192.168.1.1 trying to connect with 192.168.1.1 Missing method .ctor in assembly /home/patrick/ezrobot/EZ_B.dll, type System.Runtime.CompilerServices.ExtensionAttribute Can't find custom attr constructor image: /home/patrick/ezrobot/EZ_B.dll mtoken: 0x0a00000a
Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'EZ_B'. at HelloWorld.Main () [0x00000] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'EZ_B'. at HelloWorld.Main () [0x00000] in :0
There must be a mistake with the "ez.Connect" command....
Thanks for help, Patrick.
I think you cannot make _ezb static...
I updated instructions on the mono ez-sdk homepage for you. Here is the link: http://synthiam.com/Products/ARC
I also re-compiled the SDK with a signature, which may help your platform as well. There is additional information i added to help you.
Also, please start wrapping your code that you paste in this forum using the code tags. There are UBB Code instructions to the right of the entry form. It is difficult to read without being properly formatted. It's also a good habit if you are set out to advance robot skills.
Thank you very much

It works
In the future I will wrapp my code
Should I make a Tutorial for it? It would be the least thing for your help
one more question blush
why dont´t this work? How do you use servo fine tune? It also don´t worked under Windows...
Please write a tutorial! That would be wonderful.
Alan
ok, I´ll start tonight
Fine tune offsets every servo position by the number provided.
This is to make a servo calibrate.
It does work in Windows.
Hi, I know what Fine Tune is
But it don´t work...