For the next version of APM (the fixed-wing codebase), we're thinking about adding an acrobatic scripting language, so you can program your UAV to do awesome robotic stunts. APM already suppports inverted flight, and adding other maneuvers is technically easy once we decide on how to program them.

 

As a comparison, the UAVDevBoard uses LOGO as its scripting language and also supports inverted flight and harrier/hovering. APM does its scripting with MAVLink via the Mission Planner or HK-GCS, which is a more visual way to plan a mission.

 

One option is that we could add MAVLink commands that took the following form:

  • Roll (rotations/distance, rate)
  • Knife-edge (duration/distance) 
  • Loop (radius, degrees)
  • Harrier/hover (duration)
Acrobatic commands would be executed in parallel with waypoint commands, so you could script the position, too.
What do you think? What's the best way to script acrobatics?

Views: 838


Developer
Comment by Andrew Tridgell on July 31, 2011 at 2:03pm

@Veikko, if you enable logging in your ground station, then you already are recording everything you need to replay a trick. The problem will be taking that data and turning it into something repeatable. The timing of the control movements is likely to be critical in many tricks, and if you just blindly playback the same sequence I suspect you won't get the same aircraft movement. So you'd need to edit the sequence to add some timing information, such as "do this until the pitch is greater than 30 degrees".

We're going to need to experiment to see what works, then build up a public library of scripts that are known to work.

 

Comment by Gunnar Forsgren mobimation.com on July 31, 2011 at 4:32pm

Maybe it is possible to record certain stunts that the masters perform for "canned tricks"

that can be played back.

Comment by Simon on July 31, 2011 at 4:35pm

Maybe it is possible to record certain stunts that the masters perform for "canned tricks"

that can be played back.

I don't think so. Tricks are very dependent on environment and aircraft parameters.

 

Comment by Veikko Vierola on August 1, 2011 at 2:17pm

How about adding a capability to do fixed wing A/C hovering? It would allow fixed wing A/C to do take-offs and landings from a very small place.


3D Robotics
Comment by Chris Anderson on August 1, 2011 at 3:05pm

What does "A/C" mean?

Comment by Veikko Vierola on August 1, 2011 at 3:09pm
Air/Craft

3D Robotics
Comment by Chris Anderson on August 1, 2011 at 3:11pm
I already covered that in the post. "Harrier/hover (duration)"
Comment by Veikko Vierola on August 1, 2011 at 3:24pm
Ok that's cool. To make sure hover in this case means flight attitude where aircraft nose is 90 degrees up and roll torque is eliminated with ailerons, alt controlled with thrust, position with elevator and rudder?
Comment by dusl on August 2, 2011 at 6:37pm

I like this script , if you can do this ,the auto-land strategy wish you add in APM, it will put the system become strong . Best WIshes


Comment by amayer.antoine on June 11, 2012 at 6:18am

Hey

I wanted to know were the devolpement of the impementaion of a Python interpreter running a script that communicates (via the GCSs) with APM in MAVlink is?

 

My goal is to have a script for autonomous soaring for gliders...This would be possible if i cun run the script on the GCS...

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

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service