Wrote some experimental code to generate changing waypoint in 3D from a music .wav file
these wayoints can then be read by fly_waypoints and used by the auto pilot I designed.
From the README
This is experimental software.
Start by editing dance_h501s.c for your latitude and longitude.
You can find that by right-clicking in maps.google.com
CHANGES
In version .3 I added a freq bin display and a way to select those bins for x, y, and z motion.
Also added the program 'test_music_start', so for example a laptop can play the music in sync with you pressing the auto-pilot button.
That system uses a USB to serial adaptor on the laptop side, where DTS is driven by the red LED voltage on the auto-pilot board.
As of version 0.2 this is a 2 pass system.
The reason is that each piece of music is different.
In the first pass the x, y, and z gains are determined that are needed to get the required amount of motion in the x, y, and z axes.
You can now specify those x, y, and z spans in cm on the command line, or use any of the 50 cm defaults.
This is Linux software for programmers.
What it does:
It reads in a 44100 sampling rate stereo wave file,
does a FFT.
filters out 3 frequency ranges,
one range is used to move the drone forward and backward,
one to move it sideways,
and one to move it up and down.
The output is a list of GPS coordinates that can be read by 'fly_waypoints' ( see quadcopter page ),
fly_waypoints can then be used to write the position data from that file to an sdcard,
and that sdcard can then be used in the auto-pilot described in the above link,
and auto-pilot will fly the positions.
Sounds more complicated than it is,
OTOH it is a lot of math so maybe complicated.
This is for geeks only, nerds if you like.
Build on it,. modify or muddify ? it.
But pls respect the GPL license.
No I do not sell these things, just write it as an adventure in what is possible and what not.
To run (music must be in 44100 sample rate stereo format):
dance_h501s -x -10 -y 10 -z 0 -f music.wav > dance_1.dat
Inspect dance-1.dat in a text editor, especially the data summary at the end, and its google map locations.
Then write it to SDcard, where X stands for your SDcard device
like this:
fly_waypoints -d /dev/sdX -w ./dance_1.dat
BEWARE DO NOT USE THE WRONG DEVICE AND OVERWRITE YOUR HARDDISK!!
insert card in PC and type
dmesg
to see the device reported.
Use the sdcard in my autopilot:
http://panteltje.com/panteltje/quadcopter/index.html
If you make it to that point my hat off to you, I would have aborted long ago ;-) (and write my own version I think).
But maybe all the code will lead to more dancing creations.