.Net (c#) Library for Windows

Firmware/software/electronics/mechanics
chorltondragon
Beginner
Posts: 2
Joined: Wed Mar 20, 2013 1:21 am

.Net (c#) Library for Windows

Post by chorltondragon »

Everyone,
Would there be any interest (other than myself) in a c# based library for this?

I have my copter on order (delivery May 2) and was thinking of how can I pass the time awaiting it's arrival...

Looking at the info on line for the radio itself from nordic and and the python code...I may be naive, but suspect it would be not be impossible to reimplement this in C#? Although I don't have much experience accessing USB devices from c# I do have extensive experience with implementing various protocols across sockets and TCIP from .Net CF and full framework

If I hear enough responses, I will look into this further. Particularly whether this will require a stub C dll (called form p/interop) or not?

Right now my intent would be to focus only on the minimum necessary code to implement:

Connecting/disconnecting to the USB radio.
Sending basic commands (pitch/roll/yaw).

Of course, anything will be happily shared with the community.
Tuxx
Beginner
Posts: 7
Joined: Sat Mar 09, 2013 7:50 pm
Location: Germany

Re: .Net (c#) Library for Windows

Post by Tuxx »

I'm very interested in a c# library, but not only for Windows ;-)
With Mono it should easy work for Linux and OSX.
I have experience with Mono on Linux and Mac. So if you share the code, i will try to make it compatible with Linux and Mac.
I've also experience with MonoTouch and Mono4Android, but these cross-platform libraries are not free.

Alex
chorltondragon
Beginner
Posts: 2
Joined: Wed Mar 20, 2013 1:21 am

Re: .Net (c#) Library for Windows

Post by chorltondragon »

Agree, I would isolate the Windows USB P/Invoke stuff (required) in to separate 'HAL' dll.

The rest of the stuff would be pure C# and should cross compile fine with mono.

Will also be able to use this strategy to use a 'mock/stub' HAL classes so I can write extensive unit tests to go with it.

Obviously I will struggle to get far with this until my quad arrives (5 weeks) but will start the framework in the meantime and update this thread (~once a week).
brunogarcia
Beginner
Posts: 1
Joined: Mon Mar 25, 2013 4:43 pm

Re: .Net (c#) Library for Windows

Post by brunogarcia »

Very interested. I was even considering delving in whichever technology the code was written and learn the language so that I could play with it. But since I work with C# everyday, I'd be very happy to get involved in it using C#.

Although I missed the pre-order. Waiting to order one!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: .Net (c#) Library for Windows

Post by arnaud »

It would be very interesting to see other language bindings!

For USB the Python client is using libusb and there seems to be a C# port for it: http://libusbdotnet.sourceforge.net/V2/Index.html
The API seems to be very similar to python so you can look at crazyradio.py for examples.
CodeMonkey31
Beginner
Posts: 1
Joined: Fri May 10, 2013 4:07 pm

Re: .Net (c#) Library for Windows

Post by CodeMonkey31 »

C# and other language support in general would definately be pretty nice! :)
zetoman
Beginner
Posts: 1
Joined: Sun May 12, 2013 7:13 am

Re: .Net (c#) Library for Windows

Post by zetoman »

Definitely would want! You read my mind, Python is cool but C# is better!
dorofino
Beginner
Posts: 7
Joined: Sat May 11, 2013 5:37 pm

Re: .Net (c#) Library for Windows

Post by dorofino »

im also working on a C# Lib
TheFrog4u
Expert
Posts: 113
Joined: Fri Feb 08, 2013 6:59 pm
Location: Bremen, Germany

Re: .Net (c#) Library for Windows

Post by TheFrog4u »

just wondering: why not c++, than it would sill be platform independent.. I am not that big fan of mono..
dorofino
Beginner
Posts: 7
Joined: Sat May 11, 2013 5:37 pm

Re: .Net (c#) Library for Windows

Post by dorofino »

TheFrog4u wrote:just wondering: why not c++, than it would sill be platform independent.. I am not that big fan of mono..

I think we should have both C# and C++

TheFrog4u you should start a new post about C++
Post Reply