Modified Ardustation Software to Support the Arudcopter and a Tilt/Pan Antenna Driven By Mavlink

I've modified Phillip Anthony Smith's Mavlink Ardustation to support an inexpensive tilt/pan antenna platform. RAM is very tight in the software so this is not a laptop/ground station replacement and the original software was oriented towards APM. However, I've been flying many flights with Arducopter 2.0.x and this antenna and have gotten pretty good video performance with much less multipath interference. I still use a second Xbee on a notebook with the Mission Planner and that seems to work pretty well with the Ardustation. This link gives some more details, a demo video of the software with some explanation of the added screens, and the software itself for others to play with. The software is a little rough since it was developed quickly before the 4th of July weekend, but it is fun to watch the antenna follow the quad and I wanted to give a little back to the Arducopter community.

Views: 5592

Comment by steve F11music.com on April 8, 2012 at 12:00pm

What would cause the panning direction to be reversed? Is there a setting to change that?

Comment by steve F11music.com on April 8, 2012 at 1:14pm

BTW, if it matters, I changed out the pan servo because I thought the other one was damaged but found out it was just because the pan tilt kit wasn't balanced well so it was refusing to move. It's the same size but different brand. Do servos have different default directions of travel?

Comment by Heino R. Pull on April 9, 2012 at 9:04am

It sounds like the PWM vs rotation direction varies between different manufacturers.  I never really thought about this issue when using servos in non UAV helis and airplanes since you can always reverse the servo direction on the radio. The Ardustation software has to be modified to reverse the direction of the pan and I think it will be as simple as adding a "180.0 - servooutput" in the code but I need to look at it when I get more time this evening.

Comment by Heino R. Pull on April 9, 2012 at 7:02pm

Here is the change to the code to reverse the pan servo direction

The code is in antenna.pde

// Offset for servo limit
Bearing_Home = Bearing_Home + offset;
if (Bearing_Home > 180.0)
Bearing_Home = Bearing_Home - 180.0;
else
{
if (Bearing_Home <0.0)
Bearing_Home = Bearing_Home + 180.0;
}
Pan.write(Bearing_Home); //180-(Bearing_Home/2.0));

Change the last line to:

Pan.Write(180.0-Bearing_Home); // reversed pan servo rotation

This should reverse the direction.

Comment by steve F11music.com on April 10, 2012 at 4:37am

Thanks Heino! First I'm going to test the original servo because I think it's ok. It just wasn't panning because I had too big of a battery on the pan tilt kit.

Comment by Joachim on May 24, 2012 at 12:09pm

 

"Pan.Write(180.0-Bearing_Home); // reversed pan servo rotation"

Heino,

i had to change the pan servo rotation, but with the big W in "Write" it gave a mistace. It must be written with a small "w", now it works!

Joachim

 

 

 

 

Comment by Heino R. Pull on May 24, 2012 at 9:14pm

Joachim,

I'm glad that the servo reversing is working for you and you're up and running. Version 2.0.15 is coming very soon - I'm testing it now with Mavlink 1.0.

Heino

Comment by Jack on June 5, 2012 at 7:02am

Heino

 

Is 2.0.15 comming soon with Mav 1.0 support. I am going to update my stuff for the Sparkfun event and wanted to update my Ardustation as well but it needs to suport Mav. 1.0

Just curious.

 

Jack

Comment by Heino R. Pull on June 5, 2012 at 7:06am

Hi Jack,

I'll release it tonight - I've had it ready and tested with the previous GIT trunk but was waiting for the 2.6 beta release which is happening right now. I'll retest with the Arducopter since there were Mavlink 1.0 changes over the weekend.

Heino

Comment by Jack on June 5, 2012 at 7:56am

Heino:

 

Thanks I figured you were waiting for the trunk to stabalize and 2.6 release. I am loading 2.6 now and will be doing some tresting after that I will look forword to testing your update.

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service