|Aug 25, 2014, 05:04 PM|
Much appreciated if you can do this. Thanks
|Sep 04, 2014, 11:43 AM|
My "final" code has not been wrtten! I am undecided on the method to differntiate the pressure signal to a rate of climb. I have used the Rolf method as described in this thread but it is a bit obscure to my thick head and I found it a bit noisey and difficult to calibrate. The openxvario method is easier to understand and produces less noise but it proved unstable in my application and this resulted in a complete loss of vario and altitude information. I think the code would get stuck in a loop. I am still running the code that I posted but that has no provision for generating the vario signal and the sound on the same arduino. It is set up for airborne signal generation and sound generation on the ground.
Some background, how I see the KK (Rolf's) code working.
The time is devided by polling milliseconds to provide a 20ms period.
Evey 20 ms the code measures pressue.
Every 20 ms it also maintans two low pass filters, a fast and a slow one.
The difference between these two filters is the diffentiated pressure signal, the rate of climb.
The rate of climb signal is converted into the tonefreq variable and range is limited.
The ddAcc variable is a summation of the tonefreq variable and it overflows and rolls over to produce a positive and negative oscillator.
Pitch is determined by tonefreq and the tone is pulsed using the state of both tonefreq and ddAcc with if statements.
|Sep 08, 2014, 11:23 PM|
I haven' t tried the audio options with openxvario. I have just used it as a vario module for the Taranis. I just had a peek at the openXvario code and I don't think it has an option for generating sound. It does have an analog PPM output for the rate of climb but this would be a voltage that varied with the climb rate for use with FrSky AD1.
My problem with the openXvario code was it was unstable on my hardware. It would lock up and stop sending data until rebooted. This seemed to happen very early in launch, but the same hardware running my version of Rolf's code runs fine.
|Category||Thread||Thread Starter||Forum||Replies||Last Post|
|Discussion||Arduino based IR tag module for combat||sh4nce||Electric Combat||36||Aug 19, 2014 03:21 AM|
|Mini-HowTo||DIY arduino twin video receiver diversity controller. Updates allways in post #1||Richard_s||FPV Equipment||144||Jul 13, 2014 11:27 AM|
|New Product||DIY OpenPilot based FlightControl (F4)||lilvinz||Multirotor Electronics||267||Feb 16, 2014 03:43 AM|
|Idea||DIY Video Diversity with Arduino - Please Review!||MayMayDay||FPV Talk||2||Sep 23, 2012 12:36 PM|
|Help!||Engineering student and first arduino based build?||cad2blender||UAV - Unmanned Aerial Vehicles||3||May 17, 2012 07:59 AM|