Implement PID control on iOS client

Firmware/software/electronics/mechanics
Post Reply
ocb00999
Beginner
Posts: 6
Joined: Mon Apr 13, 2015 12:39 pm

Implement PID control on iOS client

Post by ocb00999 »

I want to implement PID control on the iOS client side. From the ios-client-example, I know how to control the thrust output etc, but how can I get the sensor output from crazyflie (yaw,pitch,alt,acceleration.. etc)
I read a post saying I can log those parameters, but I am not very clear how to start. Do I need to modify the firmware?

Thank you very much.
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Implement PID control on iOS client

Post by tobias »

First thing what kind of PID control are you thinking about? Position PID control? I don't think any lower level control will work as the latency is to big over BLE. I know it has been done using the Crazyradio but that has much lower latency.
ocb00999
Beginner
Posts: 6
Joined: Mon Apr 13, 2015 12:39 pm

Re: Implement PID control on iOS client

Post by ocb00999 »

tobias wrote:First thing what kind of PID control are you thinking about? Position PID control? I don't think any lower level control will work as the latency is to big over BLE. I know it has been done using the Crazyradio but that has much lower latency.
So what's the typical low latency required to make Positional control? Can I also get the acceleration from the sensor to my ios client?

Actually I want to make an app that can give command as "fly up for x meter and stay still for a couple seconds and come back", the x is given from user input. Is that possible?
whoenig
Expert
Posts: 395
Joined: Mon Oct 27, 2014 2:55 am

Re: Implement PID control on iOS client

Post by whoenig »

Positional control is possible with BLE, but lower-level control (i.e. trying to hover based on the IMU) is not.
Nevertheless, the drift of the Crazyflie (in fact any quadcopter without optical flow sensors) is so high, that such a high-level controller is only possible if you have some way of external tracking of the Crazyflie. Others used Cameras (such as PS3 Eye), RGBD sensors (MS Kinect, Asus XTION Pro), or professional motion capture systems (such as VICON for researchers) to achieve that.
Slaxx
Member
Posts: 86
Joined: Tue Mar 03, 2015 11:19 am
Location: Switzerland

Re: Implement PID control on iOS client

Post by Slaxx »

Yes I can confirm that it works pretty nice with a vicon system :)
Post Reply