.Net (c#) Library for Windows
-
- Beginner
- Posts: 2
- Joined: Wed Mar 20, 2013 1:21 am
.Net (c#) Library for Windows
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.
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.
Re: .Net (c#) Library for Windows
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

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
-
- Beginner
- Posts: 2
- Joined: Wed Mar 20, 2013 1:21 am
Re: .Net (c#) Library for Windows
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).
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).
-
- Beginner
- Posts: 1
- Joined: Mon Mar 25, 2013 4:43 pm
Re: .Net (c#) Library for Windows
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!
Although I missed the pre-order. Waiting to order one!
Re: .Net (c#) Library for Windows
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.
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.
-
- Beginner
- Posts: 1
- Joined: Fri May 10, 2013 4:07 pm
Re: .Net (c#) Library for Windows
C# and other language support in general would definately be pretty nice! 

Re: .Net (c#) Library for Windows
Definitely would want! You read my mind, Python is cool but C# is better!
Re: .Net (c#) Library for Windows
im also working on a C# Lib
Re: .Net (c#) Library for Windows
just wondering: why not c++, than it would sill be platform independent.. I am not that big fan of mono..
Re: .Net (c#) Library for Windows
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++