|
|
|
|
|
|
|
|
Joined Nov 2010
65 Posts
|
Very interested to this project.
I'm seeking for an application with GPS based PID algorithm (send AT commands AT*PCMD to UDP port 5556). Such application source code can be compiled and run either on YellowJacket or on AR.Drone as both of them are based on UDP Socket programming. Currently, I'm able to attach a GPS onto the serial port of AR.Drone, and receive GPS NMEA data from /dev/ttyPA0. The difficulty of the GPS based PID algorithm is: need to know the heading direction and Yaw (need to know the geomagnetic north), so AT*PCMD can be used to guide AR.Drone to the target Waypoint). |
|
|
||
|
|
Quote:
I've written a program that's running inside my other Ar.Drone. The program reads commands from /dev/ttyPA0 and then send UDP AT* commands to the local host of the drone. So it's possible to write a program and read the NMEA from GPS then command the Drone to a fix way point and back to launch. But we need to be able to manually control the drone at the same time. So this is what I was thinking. Tx -> Rx -> [Arduino mini with GPS module] -> Ar.Drone serial port. For the GPS PID , I'm studying some of source code at diydrones.com Very difficult to understand though. I did not pay much attention to my math teacher at school.
|
|
|
||
|
|
|
|
Joined Nov 2010
65 Posts
|
To be able to manually control the AR.Drone at the same time, an alternative is:
Tx -> Rx -> YellowJacket -> Ar.Drone WiFi --\ GPS module -> Ar.Drone serial port ----------\---> on-drone app -> AT Commands processor (program.elf) The on-drone app will listen on UDP port 15556, and mix the AT commands received from WiFi YellowJacket and GPS NMEA data received from serial port. It can also use iPhone WiFi control at the same time with aboves: Setup NAT on AR.Drone to redirect UDP port 5556 into 15556: iptables -t nat -A PREROUTING -i ath0 -p udp --destination-port 5556 -j DNAT --to 192.168.1.1:15556 |
|
|
|
|
||
|
Southampton, Ontario CA
Joined Feb 2005
1,745 Posts
|
Quote:
|
|
|
||
|
|
||
|
|
Quote:
After finished flying with your iPhone, just unpair it once to connect with YJ. |
|
|
||
|
|
|||
|
|
A very boring video of the Ar.Drone controlled from an RC Tx. The latest sketch allows the drone to be finely controlled.
|
||
|
|||
|
|
|||
|
Southampton, Ontario CA
Joined Feb 2005
1,745 Posts
|
WooooooHooooooo!!!! This thing rocks
![]() . I had three 8 minute flights tonight(850 mahs used out of 1300). The first flight was to check various rates and expo. I ended up seting up the drone with Mheeli's iphone settings. I also used full travel on all channels with 30% expo on pitch and roll only. The video is the second flight. On the third flight, I powered it all up and then started my flightrecord app on my iPhone. It connected and I had live video. I hit the record button and took off. It came up in a hover and then landed again. I had no rc control. It didn't like both systems running. I repowered the drone and had a good flight, no probs. I did notice when sticks were let go, the drone took a little longer to get a fixed hover position.Enjoy the video, it was blast, well spent money, Brian.
|
||
|
|||
|
|
||
|
Joined Mar 2010
901 Posts
|
Quote:
Can i talk you into selling your rc drone? ![]() It would be great if i can get an TX version off the shelf. Cheers |
|
|
||
|
|
||
|
|
Quote:
As for the Drone takes more time to do position hold, can you test with a wider throttle dead zone. I did not noticed it took longer than my iPod to do position hold. BTW, thank you for your feedback during your mod. I will update the instructions with your findings. |
|
|
||
|
|
||
|
Southampton, Ontario CA
Joined Feb 2005
1,745 Posts
|
Quote:
Brian. |
|
|
||
|
|
||
|
|
Quote:
You can adjust individual axis to your liking. |
|
|
||
|
|
||
|
Southampton, Ontario CA
Joined Feb 2005
1,745 Posts
|
Quote:
. It's flying so well that I don't want to start over. You can fly the drone without an i device. If you had a friend with a phone/pad, you could set it up that way and then fly with a regular rc tx. Once it's setup, your good to go. Mheeli. Not sure when I'll get to changing my config file. Indoor flying only now, once a week. We have snow now and no way will I fly outdoors with all that WET stuff around. I'm going to install a 72mhz rx and try a test. If that goes well, I will add a 5v camera and 5v 10mw 2.4 video tx, powered from the bec for my rx/YJ. I'm estimating 30g's more. The rc setup will work better for FPV. Do you have anything in your sketch that will make the Drone land if I lose rx signal(no analog signals to YJ)? Brian. |
|
|
||
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Discussion Parrot AR.Drone range extension, need help from antenna gurus. | g00bd0g | Video Piloting (FPV/RPV) | 4 | Jan 21, 2011 01:29 PM |
| Wanted Parrot ar drone | ROCKY2 | Aircraft - Electric - Helis (FS/W) | 23 | Nov 07, 2010 09:08 AM |
| Discussion Who’ s the Russian model in AR.DRONE vid? | Naev | Electric Heli Talk | 8 | Oct 12, 2010 02:32 PM |
| Discussion AR.Drone to carry camera | gunnar-rc | Aerial Photography | 2 | Sep 07, 2010 09:52 AM |
| Discussion Unboxing and First Impressions With the Parrot AR.Drone | nikotttin | Multirotor Talk | 0 | Aug 31, 2010 04:50 AM |