-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c# bindings #123
Comments
No, the list of languages is not frozen - I have one person that would be very happy indeed to see a C# binding. Please feel free to issue a PR! |
I'd love to have a C# binding in this repo! Personally, C# is my favorite programming language; I've been thinking about trying to get one started for a while, but it hadn't seemed like they had gotten far enough to make the CoreCLR run on ARM Linux, and I had had trouble with mono on the EV3. How are you deploying the code to the EV3? Did you configure a build job from Visual Studio, or are you just copying the files manually?
I wouldn't say that autogen is a requirement so much as it is recommended to make your life easier. If you think you're fine maintaining the code manually, go for it. Mainly, we're just looking for high-quality wrappers that support at least the core functionality of ev3dev. We also generally want the interface to look like the one described in our spec to keep things consistent, but it doesn't need to be exact if there are language features that you'd like to take advantage of or you just think there's a better way to do it. PRs are welcome; if you think you have a binding that is reasonably functional, open a PR to add a submodule and we'll take a look. P.S. I knew I recognized your username... you're the one who got ASP.NET 5 running on the EV3 (and then was featured by Scott Hanselman on Twitter)! That was pretty cool. I have some friends that work on the ASP.NET team at Microsoft; a lot of them know about your project 😉 |
Unfortunately, the "arm" in CoreCLR is "armhf" in Debian, so no CoreCLR for the EV3 (which is "armel" in Debian). The latest mono from Xamarin works though. |
Yeah, that's the conclusion that I had come to... no official support 😞 But at least Xamarin is continuing to maintain their version, and the debug tools in Visual Studio should work with mono. |
Wow - that Microsoft connection is pretty cool! |
@WasabiFan Hey I'm happy I can help :) I've just created PR to add C# bindings to this repo. I was also struggling with mono on ev3 but fortunately I documented installation on blog you mentioned. And it's great to hear that this project had some attention. I think you will benefit from this as well - it was based mainly on ev3dev ! This code generator I PR'ed should be fully compatible with your latest API but I haven't tested it extensively yet. I think it still lacks a few important pieces so adding a few things wouldn't hurt (if you don't mind). I think it would be beneficial to see things like:
Thank you very much for your work guys! Without you running DNX on Lego would be impossible. |
I think I was too eager to make this PR :) I'll work on it a little more and then try it again. |
I created another PR #129 |
Because this project looks dead, I tried to follow the instructions from @pgrudzien12 on his blog( http://bleedingnedge.com/2015/11/08/asp-net-5-on-lego-mindstorms-ev3-using-ev3dev/ ) and it didn't work out on the newest release, so I am currently trying to get mono to compile on the ev3 (because mono didn't want to install) but the batteries keep dying, so after mono is compiled I'll try to write a simple dll that will work with the ev3dev to control the motors and sensors. the compiling is very slow on the ev3dev though, it takes more than a day to compile and I don't even know if it'll fully compile, I really hope I can make a C# binding for the ev3dev because that will be cool 👍 |
If you do, let us know! I imagine you can leverage a fair amount of the code that's already here, excluding the driver interface changes that have been made since this code was written. I have historically gotten mono running on the brick I believe, but never used it for anything other than a quick test; can confirm, it's really slow to get installed! |
I haven't used bindings, but I used Mono and C# on EV3 with some instructions here. Maybe it can be of some help. I could even compile with Visual Studio on PC and run with Mono on EV3. The build process there was through makefiles, for both Mono |
I sometimes leave my EV3 powered on for whole day with charger plugged to EV3-Rechargable-Battery. It kind of changes the way you work when you don't have to worry about batteries and don't have to rebuild robot for replacing batteries/charging. |
sorry @bmegli but €109,99 is too much money to spend for me...I'm only 15 years old and get 5,50 /week so I can't afford that |
Something like this and this may be more in your price range if you need to leave the EV3 on for long periods of time. Also, I would suggest using docker to install Mono and create an image with brickstrap. For example you can use the following
|
|
@dlech Thank you 👍 I also have errors while installing mono-complete but I thought compiling it on the brick itself should work better until I discovered that it would take days to compile and due the problems with the batteries(will be fixed thanks to you) I was stuck...thank you 👍 |
@dlech so the upcoming days I will be trying to program a dll the ev3..that can only be executed on the ev3 , thank you very much 👍 :) |
@WasabiFan I know..I'll test tomorrow because I am busy now 👍 |
Sorry, was working and doing other things, but I'm back to this again 👍 |
I've written fullly autogenerated C# binding based on this project. Do you accept such PR's or the list of languages are fixed/frozen? (I've seen #114 so I suppose not but..)
I'm still not sure if you would need anything more than autogeneration to make it into this repo.
The text was updated successfully, but these errors were encountered: