Crazyflie 2.0 - Drivers API information + IOS

Firmware/software/electronics/mechanics
Post Reply
rbfigueira
Beginner
Posts: 1
Joined: Mon Apr 10, 2017 12:30 pm

Crazyflie 2.0 - Drivers API information + IOS

Post by rbfigueira »

Hello Friends,

I have bought the Crazyflie 2.0 + Crazyradio PA and I am new on developing on Crazyflie drone. I don’t know if is possible but I will try to test and develop only using IOS. If I have to dig on C or python language will not be a problem but if I can I will try to avoid that. I will be using my Macbook Air + ipad + iphone for developing.

In this stage I don’t want to control the drone using any gamepad. I want to do all by code, giving all the drone directions only using code (using the four main dimensions of controls; roll, pitch, yaw and thrust).

I need to understand which libraries I should use. I need to know how to communicate with all Crazyflie peripherals (drivers) to know all about the drone. (For example communicate with a deck driver).

Where I can find all API information to communicate with Crazyflie ? What I have to use to communicate with all drivers available?
I would love to get some feedback to begin prepare my Macbook ;)

Many Thanks
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Crazyflie 2.0 - Drivers API information + IOS

Post by arnaud »

Hi, welcome! :)

The main lib and client to connect the crazyflie from a computer are written in python. It is cflib (https://github.com/bitcraze/crazyflie-lib-python) and the Crazyflie client (https://github.com/bitcraze/crazyflie-clients-python). The readme of both project explains how to install them on your Mac. You will need to install libraries using homebrew.

You can look at the examples folder for some example to communicate and control the Crazyflie.

For iOS there is an existing iPhone client written in swift: https://github.com/bitcraze/crazyflie2-ios-client/.

It will be quite hard to control the Crazyflie by software without any external reference. With an external reference though, like a webcam, a quite good stability can be achieved. See this blog post for example: https://www.bitcraze.io/2017/04/updated ... an-filter/
Post Reply