-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distance Travelled Telemetry Line. #5563
Comments
It is not the GPS speed as a sensor. To calculate the “distance traveled”, you need to measure the latitude every second and calculate the distance in between and add it to a variable. This is the formula: To avoid inaccuracies while the model is only standing on the ground, I would recommend that the calculation only takes place when, for example, you have released the motor protection switch and are about to take off. |
Here's a LUA function script to do that. It requires a speed sensor (GSpd) and generates a new sensor GTrd (GPS travelled distance). If necessary change line 5 to the name of your GPS speed sensor.
|
Thanks for that, but it would still be better to have it built in to Edge. |
You don't have to bloat the firmware for stuff hardly anyone uses if you can easily add it with LUA |
IMO, using a LUA as Michael demonstrated is the right way to add support
for this.
…On Thu, 26 Sept 2024, 4:40 am Michael, ***@***.***> wrote:
You don't have to bloat the firmware for stuff hardly anyone uses if you
can easily add it with LUA
—
Reply to this email directly, view it on GitHub
<#5563 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ66KLEYK4ZAHU4FVUPA7DZYL7QXAVCNFSM6AAAAABOZ6PTFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZUHA4DMNBYGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Maybe the reason not many people use it, is because it is not there. |
More likely, it is because this really something a flight controller would
calculate and report itself. Or, if you want to know distance (in a
straight line) from yourself) you also may need a GPS in the handset, in
order to take in account movement of the handset (if it is not
stationary)... There is built-in support for that calculated sensor
already.
…On Thu, 26 Sept 2024, 8:41 am BarryCole, ***@***.***> wrote:
Maybe the reason not many people use it, is because it is not there.
—
Reply to this email directly, view it on GitHub
<#5563 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ66KISNJYWLPNFWDEMZ73ZYM3YLAVCNFSM6AAAAABOZ6PTFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZVGM4TGOBVGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Some of you are missing the point. I do not want to know how far away from me the plane is. I want to record how far it has flown, during the day. |
There is a way to do this with a calculated sensor. (With OpenTX 2.3.7 I had to change the units of GSpd to [A] or [mA] and I had to use a Ratio of 1.852 because OpenTx worked with [ktns]) https://fpv-community.de/threads/wegstrecke-mit-gps-lazy-carbo-way.85758/ (It's similar to how you calculate the fuel consumption from [A] to [mAh]) |
That is quite easy, when you don't say what your intent / use case is, so thank you for elaborating on that. I can put the crystal ball away now ;)
But there are plenty of forum posts, guides and snippets on how to use Lua to add in custom telemetry sensors, etc, so that is not a very good argument for this - as it clearly is there - just not as user friendly as some of the other options. Given this is basically just another version of the consumption calculated sensor, but with the appropriate units, it should not be that hard to add though. |
To avoid misunderstandings you should also read under discussions "Distance travelled #5516". |
I still think it would be better built in. It is there in ETHOS as "Trip", a simple one liner, so why not edge.??? |
Are you aware this might comes across pretty rude? |
Not meant to be rude, just short and to the point. |
Is there an existing issue for this feature request?
Is your feature request related to a problem?
No
Describe the solution you'd like
Is it possible to add a telemetry line to measure "Distance travelled" using GPS speed as the sensor.
Thanks for your help.
Describe alternatives you've considered
Cannot find an alternative.
Additional context
No response
The text was updated successfully, but these errors were encountered: