Using Vario Alt for rate (ascend/descend per minute) announcements
Posted: Tue May 19, 2020 6:31 pm
Hello perhaps a newbe question: I have a Jumper T16 since a week.
I was used to my previous "analog" vario with its own downlink radio that (besides the vario performance and altitude) would also announce every minute how many meters of gain/loss I had for my glider over the "past" minute of trying to fly thermals.
I could find "Alt" and "Vspd" sensor values (ID 224) but no "Rate" (with a configurable interval to calculate over).
I consider the following approach:
- Setup a calculated sensor from the (Alt) telemetry value. A calculated value (called "Rate") of type "distance" in meters.
- Setup a timer, that triggers every minute (for one second).
- Setup a function on the start of that timer edge to playvalue "Rate" and immediately after that do a reset of "Rate" on the falling edge.
Is this a good approach? I got the timer / reset / play out thing working, In the "special function" I see the "Play Value" get bold, hear the sound ("Zero meters" and see the reset turn "Bold" very briefly, shortly after the play out. So far so good: timer, play out and reset are working.
What I am not sure about is : can I indeed calculate the rate from "Alt" by resetting each time and the "Distance function", and does this leaf the "alt" at its correct value (so no reset of that one).
If this works it is a pretty need trick , but maybe it can be done more easily?
-- Edit -- I wrote a LUA script to accomplish it. It is attached in the thread below
I was used to my previous "analog" vario with its own downlink radio that (besides the vario performance and altitude) would also announce every minute how many meters of gain/loss I had for my glider over the "past" minute of trying to fly thermals.
I could find "Alt" and "Vspd" sensor values (ID 224) but no "Rate" (with a configurable interval to calculate over).
I consider the following approach:
- Setup a calculated sensor from the (Alt) telemetry value. A calculated value (called "Rate") of type "distance" in meters.
- Setup a timer, that triggers every minute (for one second).
- Setup a function on the start of that timer edge to playvalue "Rate" and immediately after that do a reset of "Rate" on the falling edge.
Is this a good approach? I got the timer / reset / play out thing working, In the "special function" I see the "Play Value" get bold, hear the sound ("Zero meters" and see the reset turn "Bold" very briefly, shortly after the play out. So far so good: timer, play out and reset are working.
What I am not sure about is : can I indeed calculate the rate from "Alt" by resetting each time and the "Distance function", and does this leaf the "alt" at its correct value (so no reset of that one).
If this works it is a pretty need trick , but maybe it can be done more easily?
-- Edit -- I wrote a LUA script to accomplish it. It is attached in the thread below