ark
New User
I'm. very new to OpenTX but not to embedded development I've even used Lua a bit in other projects. I'm excited about what I'd like to do with my transmitter but I'm also not sure if what I'd like to do is possible. Here I'll explain what I'd really like.
I have a 3 position switch that starts off down. in this position the throttle is cut off.
When I move the switch to up the throttle is enabled and I might as well play the airplane fasten seatbelt audio file
However moving the switch up also starts a countdown timer.
The timer stops whenever the switch is in the down position and resumes when it's back up.
putting the switch in the middle position for a few seconds will reset the timer to the start time.
the timer will play sounds when it gets to 5, 2, 1 minutes and 30 seconds. and all done.
It seems like this should all be possible in OpenTX right? Are there existing timer functions I could take a look at?
Next level is I'd like the time for each model to be stored with the model as a variable, but have one script for all models. possible?
Then later on I can actually monitor the throttle level and count down faster or slower depending on how much power I'm using.
Later still, I thought I could use a telemetry receiver to log data for flights and then crunch the numbers then I can come up with a power usage profile for a model and switch to a cheaper receiver and still have a pretty good reconning of how much power I have left.
I'd appreciate any advice you might have, thanks.
I have a 3 position switch that starts off down. in this position the throttle is cut off.
When I move the switch to up the throttle is enabled and I might as well play the airplane fasten seatbelt audio file
However moving the switch up also starts a countdown timer.
The timer stops whenever the switch is in the down position and resumes when it's back up.
putting the switch in the middle position for a few seconds will reset the timer to the start time.
the timer will play sounds when it gets to 5, 2, 1 minutes and 30 seconds. and all done.
It seems like this should all be possible in OpenTX right? Are there existing timer functions I could take a look at?
Next level is I'd like the time for each model to be stored with the model as a variable, but have one script for all models. possible?
Then later on I can actually monitor the throttle level and count down faster or slower depending on how much power I'm using.
Later still, I thought I could use a telemetry receiver to log data for flights and then crunch the numbers then I can come up with a power usage profile for a model and switch to a cheaper receiver and still have a pretty good reconning of how much power I have left.
I'd appreciate any advice you might have, thanks.