Skip to content

Dot.NET libraries written in C# for Crazyflie Quadcopters and Crazyradios.

Notifications You must be signed in to change notification settings

chungInShing/CrazyflieDotNet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrazyflieDotNet

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)

Releases:

About The CrazyFlie:

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

About This Project:

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.

Dev Environment:

  1. Windows OS (you can try to set up on MacOS/Unix/Linux, but no steps provided and not tested).
  2. Visual Studio (with NuGet installed).
  3. GitHub Windows client: https://windows.github.com/
  4. Git for Windows libraries and tools: http://msysgit.github.io/
  5. Open the GitHub Windows client and clone this repository to a folder specifically used for your GitHub clones/repos. (ex: C:\Dev\GitHub...)
  6. Open Visual Studio.
  7. Tools > Options > Source Control > Microsoft Git Provider.
  8. File > Open > Open From Source Control.
  9. In Team Explorer Window: Local Git Repositories > Add. Browse to your GitHub repos folder (ex: C:\Dev\GitHub).
  10. Team Explorer should load all found git repos within that folder.
  11. Double click this repo. Now you should see the solution(s) listed, which you can double click to open.
  12. Go to Tools > Options > Text Editor > C# > Tabs > USE TABS!
  13. 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!

OS Driver (Windows):

  1. Get the Zadig USB Tool: http://zadig.akeo.ie/
  2. Run the Zadig executable.
  3. In the drop down, select the "Crazyradio USB Dongle".
  4. Select "libusb-win32 (vx.x.x.x)" as the driver to use for the device.
  5. Note the USB IDs. The default, assumed by this library, are: 1915 (vendor ID) and 7777 (product ID).
  6. Click Install Driver.
  7. Open Device Management (devmgmt.msc in run box).
  8. Navigate to "libusb-win32 devices" to ensure that "Crazyradio USB Dongle" is listed.

OS Driver (MacOS/Unix/Linux):

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.

Continuous Build:

(currently broken) https://travis-ci.org/ckarcz/CrazyflieDotNet

About

Dot.NET libraries written in C# for Crazyflie Quadcopters and Crazyradios.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%