Dot.NET libraries written in C# for Crazyflie Quadcopters and Crazyradios.
(these libraries are for version 1.0 of the quadcopters, 2.0 untested, possibly supported/not supported)
- Version 1.0 of the CrazyradioDriver .NET library is available for download and use! This library exposes the core functionality of the Crazyradio USB dongle. This is NOT the CTRP library (not done yet) and all communication is "raw" in that req/resp are all arrays of bytes:
- https://github.com/ckarcz/CrazyflieDotNet/tree/master/Releases/CrazyflieDotNet.CrazyradioDriver
A Crazyflie is a tiny open source picocopter/quadcopter that began as a side project by a bunch of engineers and grew to great internet acclaim via a HackADay posting in 2011 (http://hackaday.com/2011/04/29/mini-quadrocopter-is-crazy-awesome/).
A lot of hard and a couple years later, they were able to bring their Crazyflie open source quadcopter into mass production. Check out their site here (http://www.bitcraze.se/).
Crazyflie wiki: http://wiki.bitcraze.se/projects:crazyflie:index, http://wiki.bitcraze.se/doc:crazyflie:index
Crazyradio wiki: http://wiki.bitcraze.se/projects:crazyradio:index
This is currently a work in progress in my spare time.
Milestones:
- Working .NET abstraction "driver" for Crazyradio USB dongle - COMPLETED
- You are able to send the copter packets (byte array) and get an ACK packet back. Currently I have only tested pinging the copter as I am working on the remainder of the transfer protocol.
- Implement the Crazyradio Transfer Protocol (CRTP) - IN PROGRESS
- Front end design and development - NOT STARTED
- Cross platform support using Mono framework - IN PROGRESS
The C# CrazyradioDriver is completed and working. This library (CrazyflieDotNet.Crazyradio.dll) provides a type safe API for communication with the Crazyradio USB dongle with Crazyflies. The library and "driver" expose all available configurations for the USB dongle, including defaults. The API is quite nice and easy to understand and use, even for a beginner.
- Windows OS (you can try to set up on MacOS/Unix/Linux, but no steps provided and not tested).
- Visual Studio (with NuGet installed).
- GitHub Windows client: https://windows.github.com/
- Git for Windows libraries and tools: http://msysgit.github.io/
- Open the GitHub Windows client and clone this repository to a folder specifically used for your GitHub clones/repos. (ex: C:\Dev\GitHub...)
- Open Visual Studio.
- Tools > Options > Source Control > Microsoft Git Provider.
- File > Open > Open From Source Control.
- In Team Explorer Window: Local Git Repositories > Add. Browse to your GitHub repos folder (ex: C:\Dev\GitHub).
- Team Explorer should load all found git repos within that folder.
- Double click this repo. Now you should see the solution(s) listed, which you can double click to open.
- Go to Tools > Options > Text Editor > C# > Tabs > USE TABS!
- If you use ReSharper, please load the shared dot settings file and use that for the solution! Use the provided clean to clean your files! Keep the code style the same! Once in a while the MASTER branch will be cleaned to ensure consistensy in style. Finally, please comment your code as done in already submitted files!
- Get the Zadig USB Tool: http://zadig.akeo.ie/
- Run the Zadig executable.
- In the drop down, select the "Crazyradio USB Dongle".
- Select "libusb-win32 (vx.x.x.x)" as the driver to use for the device.
- Note the USB IDs. The default, assumed by this library, are: 1915 (vendor ID) and 7777 (product ID).
- Click Install Driver.
- Open Device Management (devmgmt.msc in run box).
- Navigate to "libusb-win32 devices" to ensure that "Crazyradio USB Dongle" is listed.
Due to the fact this is using libusb and the availability of mono (and soon x-plat dotnet core), you should be able to develop, build, and uses these libraries on other platforms. This is currently not tested as working. Read up and give it a shot.
(currently broken) https://travis-ci.org/ckarcz/CrazyflieDotNet