Skip to content
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

flight times logging and display #1218

Closed
nigelsheffield opened this issue Jun 8, 2014 · 4 comments
Closed

flight times logging and display #1218

nigelsheffield opened this issue Jun 8, 2014 · 4 comments

Comments

@nigelsheffield
Copy link

Would it be possible to make a lua script or something to log flight times for dlg and display them on the screen in a grid or list , each time the launch button is pulled it could dump the timer value onto the list , be really good for practising tasks rather then having to remember what you have done.

More complicated but would be fantastic would be of tasks could be entered and automatically scored.

@projectkk2glider
Copy link
Member

That could be done with:

  • one one time script that would display results
  • one model script that would save every flight's time and possibly other statistics.

What is currently missing in OpenTX for this: model scripts and one time scripts can't share variables (in this case that would be a list of times), because Lua state gets reset in between. We would need to devise a mechanism to share data. Possible ideas:

  • Lua scripts can read/write files on SD card
  • some kind of shared memory (like clipboard) for all Lua scripts for exchanging data between scripts.

@nigelsheffield
Copy link
Author

Bertrand showed us a lua telemetry screen which had done this and also logged Max height for each flight along with a graph of altitude for last flight, not seen the actual lua script though so don't know if it really works?
Maybe this would be a good way to go, then the values could be observed whilst flying to get an idea of what flight times are needed to make some task.
Though having some shared memory could be a good thing, maybe from SD card then results or even targets could be saved / edited loaded for making timer based games which could be modified to suit user?

@kilrah
Copy link
Member

kilrah commented Jun 27, 2014

Bertrand showed us a lua telemetry screen which had done this and also logged Max height for each flight along with a graph of altitude for last flight, not seen the actual lua script though so don't know if it really works?

It's in progress.

@nigelsheffield
Copy link
Author

Ah, sounds good! Thanks kilrah.
I look forward to seeing it when its done!

@kilrah kilrah closed this as completed Jul 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants