Originally Posted by
PatFarrell
I'm trying to add a pitch bar to my videos. For some sports, mountain biking, dirt bike riding mountains, etc. all action cameras flatten out the terrain. You can't tell visually if the hill is as gentle as a bunny slope at a ski resort, or a near vertical cliff. I've found that a bar graph that shows pitch helps a lot.
I'm using "Bar / Level - 002" with style "Pitch bar"
This is a vertical bar graph that centers on zero and can go positive or negative.
I assume the style connects it to a function that calculates the pitch from the position and elevation in the GPS data.
(you need two positions to calculate the difference in elevation for the distance to give the pitch)
I assume some other style could show throttle position, etc.
In general, I'm confused about what style does and how that interacts with the "name" of the display object.
Simply adding the display object does not fully bring joy. It needs some dampening. The values jump wildly, so the bar graph
flashes wildly. Its so fast its impossible to read, but the series of metrics could be 10, 15, 8, 25, 13, 0, -14, 3, 15,....
The obvious solution is to use a weighted average to slow down the variations. (This can also be nice on speedometer calculations).
I could guess that a style might control how heavily the weighted average crushes variation.
Or perhaps some "weighting coefficient" is a parameter to the Display Object?
So I'm specifically interested in how I can apply some dampening to the data for the pitch bar.
More generally, I don't understand how the objects, the styles and other parameters interact.
And is there source code to this Display Object that I can look at?
Thanks