Autopilot

Firmware/software/electronics/mechanics
amir64
Beginner
Posts: 16
Joined: Tue Jun 11, 2013 8:15 pm
Location: Pullman, USA

Autopilot

Post by amir64 »

Is it possible to write a program on pc that would fly the crazyflie from point A to point B?
TheFrog4u
Expert
Posts: 113
Joined: Fri Feb 08, 2013 6:59 pm
Location: Bremen, Germany

Re: Autopilot

Post by TheFrog4u »

Yes and no.. You CAN write a program that controlls thrust, pitch, roll and yaw - estimate the velocities and orientations from that and integrate to position, but for absolute position control you would need a gps module.. You could try to integrate one into the cf, but you would need to do some hardware and software modifications.. also weight seems to be an issue.
Surrender
Expert
Posts: 100
Joined: Tue May 14, 2013 8:31 pm
Location: Austria

Re: Autopilot

Post by Surrender »

I have found a GPS Module which has a weight of about 6g. This is too much for the crazyflie, the flight time will be very decreased.
Maybe the board is extended and modified: add the gps modul in the middle of the board, add a minimal stronger motor and a bit more battery capacity to compensate it.
n0n4m3
Beginner
Posts: 10
Joined: Fri Jun 14, 2013 3:25 pm
Contact:

Re: Autopilot

Post by n0n4m3 »

Hi,

I'm also interested in creating a program to control crazyflie "automatically".
What would be the best way to go about creating this program? Is it possible to use any other language (c or java) than python?

Thanks!
Surrender
Expert
Posts: 100
Joined: Tue May 14, 2013 8:31 pm
Location: Austria

Re: Autopilot

Post by Surrender »

It's everyone's dream to get a autopilot :D

Maybe a solution: Use the double motor trick (instead of using 4 motors use 8->) to get more available payload and then add a GPS module e.g.[url] http://www.robotshop.com/eu/4d-systems ... ver-2.html
This has a weight of 6g, you have to create also a controller (e.g. GPS I²C Interface) which communicate with the extension header part and then with the CF firmware. From there you have to create (or adopt from existing ones) a driver and then you can control your CF automatically. Maybe you will also need a working barometer and magnetometer to do so (already going on).

It is not a very short way and it will consume a lot of time, but if someone has time and/or is willing to do it then we all profit from this.

If you do not want to add GPS then there is the other solution with OpenCV (Look here). A robot has to know his limited area otherwise he cannot be controlled.
n0n4m3
Beginner
Posts: 10
Joined: Fri Jun 14, 2013 3:25 pm
Contact:

Re: Autopilot

Post by n0n4m3 »

ehehe, it's not my dream per se but since I'm a programmer I just want to build something fun and different from what I'm used to.
My idea was to try to mount a camera on the crazyflie and do some image recognition but there's still no ideal solution to mount a camera as of yet (i've been following some threads on this topic).

So to start I'm just going to try to make it fly in a straight line and make it land alone.
Just wanted to know if there's a simple project just to control the thrusters and check the values from the sensors instead of having to modify crazyflie pc client because it's a bigger project.

Thanks for the tips!
Surrender
Expert
Posts: 100
Joined: Tue May 14, 2013 8:31 pm
Location: Austria

Re: Autopilot

Post by Surrender »

I'm a programmer too, but also programming hardware not only applications for users ;)

There is the possibility to control the crazyflie with send commands: thrust, pitch, roll, yaw (as TheFrog4u said).
If you're a programmer than you can create a API to control the pc client software from the command line or similar.

You have to do something with PC Client, otherwise it is not possible to do something (or create all from beginning ;D).

Hm.. but maybe you can look at the android app code, (android is java like) there might be a solution to control our crazyflie without pc client.
SImulate android of a VM, change your program, etc... jut some thoughts :)
n0n4m3
Beginner
Posts: 10
Joined: Fri Jun 14, 2013 3:25 pm
Contact:

Re: Autopilot

Post by n0n4m3 »

I think I just found what I was asking for: http://forum.bitcraze.se/viewtopic.php?f=6&t=317
Gonna try to play with it and if I build something entertaining I'll post it in the forums :)

Thanks!
DesTinY
Member
Posts: 97
Joined: Sat Feb 09, 2013 5:18 pm
Location: Bünde, Germany

Re: Autopilot

Post by DesTinY »

foosel
Expert
Posts: 175
Joined: Sat Feb 02, 2013 9:59 pm
Location: Obertshausen, Germany
Contact:

Re: Autopilot

Post by foosel »

Moved to the Crazyflie > Development sections, since this is CF specific (and not targeting quadrocopters in general) :)
Image
Also: AR.Drone 2.0 (RC-enabled thanks to self-soldered MiruMod) and Hubsan X4 H107
Post Reply