F3K program for Taranis QX7 and X9D with scripts for score keeping and graphing - RC Groups
Thread Tools
Jan 09, 2016, 01:33 PM
Jesper Frickmann
jfrickmann's Avatar
Discussion

F3K program for Taranis QX7 and X9D with scripts for score keeping and graphing


The newest version needs OpenTX 2.2 with the "luac" build option enabled. A version for OpenTX 2.1 is also available.
Please read the instructions included in the .ZIP file - especially the part about installation!!


This F3K program for the Taranis QX7 and X9D transmitters provides the following features:
  • Timing and score keeping for all of the official FAI F3K tasks.
  • Scores can be saved to the SD card and viewed later. That way, you can fly a contest and record scores on paper afterwards.
  • Graphing of telemetry log data. You can view receiver battery volts, RSSI signal strength and, if you have an altimeter, altitude and vertical speed.
  • Controls and mixes: flaps, camber control, ailerons, aileron differential, aileron-to-rudder, snap flaps, flap-to-elevator, and flight modes.
  • Zoom flight mode is entered after the Launch mode, to facilitate a straight climb-out.
  • Flaps are disabled at launch, and remain disabled until the throttle stick is pushed forward, for quick turnaround.
  • Optimal usage of the flaperon servo range by having full flaps be 100% servo down, and aileron up without flaps and camber be 100% servo up.
  • Full aileron control with flaps down, by increasing the differential to 100% with full flaps.
  • Camber preset for each flight mode is adjusted with the throttle trim button.
  • Mixes for snap flap, flap-to-elevator, aileron differential, and aileron-to-rudder can easily be adjusted with trim buttons.
  • Flaperon travel can be adjusted on five-point curves, and the curves can be easily adjusted with the aileron trim button at each of the five points, to get perfect alignment of the flaperons.
  • I have also included a stripped down setup for RE gliders.
Screenshots of the telemetry screen for timing and score keeping.





Scores can be saved to the SD card and viewed later. That way, you can fly a practice contest and record scores on paper after the contest.



Graph of telemetry log data. You can view battery volts, RSSI signal strength and, if you have an altimeter, altitude and vertical speed. You can also view min., max, and launch altitude, if available.



I hope that you find the program useful. Please feel free to use it as is, ask questions, and take inspiration for your own programs.

Last edited by jfrickmann; Jan 26, 2018 at 04:46 AM. Reason: Code that should prevent blowing up Companion was removed - because it blows up Companion 2.2!!
Sign up now
to remove ads between posts
Jan 09, 2016, 03:33 PM
Have Fun and Just Fly!
l shems's Avatar
Well done! I will probably borrow your score saving code. Can we make it a joint separate lua file? Nice to stay interoperable.

Power of choice to the open source users!
Jan 09, 2016, 07:15 PM
Closed Account
Jesper - cheese cake too !
Last edited by zephirus; Jan 09, 2016 at 07:27 PM.
Jan 10, 2016, 08:55 AM
Jesper Frickmann
jfrickmann's Avatar
Quote:
Originally Posted by l shems
Well done! I will probably borrow your score saving code. Can we make it a joint separate lua file? Nice to stay interoperable.

Power of choice to the open source users!
You are of course very welcome to use the code in your project. I think that it should be easy to adapt , but I do not know what is missing in 2.0.x vs. 2.1.7. Do you have any plans to migrate your project to 2.1.x?
The reason why the program requires 2.1.7, is that the score saving and browsing code uses the string library, and the timer start/stop uses model.getFlightMode. The latter is of course easy to change, but it will be quite complicated to save and browse scores without the string library.
Last edited by jfrickmann; Jan 10, 2016 at 12:12 PM.
Jan 10, 2016, 06:35 PM
Have Fun and Just Fly!
l shems's Avatar
Quote:
Originally Posted by jfrickmann
You are of course very welcome to use the code in your project. I think that it should be easy to adapt , but I do not know what is missing in 2.0.x vs. 2.1.7. Do you have any plans to migrate your project to 2.1.x?
The reason why the program requires 2.1.7, is that the score saving and browsing code uses the string library, and the timer start/stop uses model.getFlightMode. The latter is of course easy to change, but it will be quite complicated to save and browse scores without the string library.
You can't even write a score in the first place in the previus versions.

I've ported my code to 2.1, remaining backwards compatible to 2.0.

I intend to use your code as an example. I think the setup shpuld be different: One file per day, just as telemtry.

Then simply look for the available score files and present the results.

Then you don't run into file length problems.

Greetings.
Jan 10, 2016, 08:54 PM
Jesper Frickmann
jfrickmann's Avatar
I considered that. But then you will not be able to look up a score from yesterday. And I do not think that there is a Lua method to browse for files on the SD card.
Jan 11, 2016, 01:19 AM
Have Fun and Just Fly!
l shems's Avatar
Keep a logfile for all created files, or check in a loop.

I do the same for creating menus, with the limitation of risking an error when trying to load a nonexisting file in opentx 2.0. In 2.1 its easy, since you can check if a file exists.
Jan 11, 2016, 07:25 AM
Jesper Frickmann
jfrickmann's Avatar
I shems, I prefer to kep things reasonably simple. Therefore, I will just keep the score file the way it is for now.
I just uploaded a new version of the file with some minor change to the infor displayed at the top of the screens (Rx voltage and time).
Jan 11, 2016, 07:39 AM
Registered User
Jesper,

Thank you very much, this come at the right time for me.
Very good work.

I like to check if you have similar scripts like DLG graph, better still one that can read the telemetry log to display on taranis screen either live or from the logs.

http://rcsettings.com/index.php/view...g-flight-graph

Thanks in advance

Jonathan
Jan 12, 2016, 08:52 PM
Jesper Frickmann
jfrickmann's Avatar
I just realized that Companion blows up if the log file is not already present on the SD card. I have uploaded a fix for that.

Jonathan, I do not have any scripts for logging altitude - but I agree that filago's script looks pretty nice.
Jan 13, 2016, 06:32 AM
Kyle Clayton
Wave Glider's Avatar
Nicely done Jesper! I haven't touched my radio in a month now, maybe good incentive for me to update it and try this program.
Latest blog entry: Helios and XXLite DLG
Jan 13, 2016, 10:49 AM
Jesper Frickmann
jfrickmann's Avatar
Hi Kyle

Give it a spin and let me know what you think

Before upgrading to 2.1, please read the first post here: http://www.openrcforums.com/forum/vi...hp?f=45&t=7239
Jan 23, 2016, 11:16 PM
Registered User
Jesper,

Can you help me understand why in lauch and zoom mode, i have limited ability to use the elevator subtrim to trim it down. I have to have a high subtrim max up to trim it down. So this restricted me in ability to fine adjust launch and zoom mode properly.

what am I doing wrong ?

Thanks in advance,

Jonathan
Jan 24, 2016, 09:26 AM
Jesper Frickmann
jfrickmann's Avatar
Hi Jonathan,

I assume that you are talking about the setup for your Fireblade, since it is selected in your file.
By subtrim, I assume that you are referring to the subtrim being set on the OUTPUTS page? These do not apply to any particular flight mode, so I do not understand how they can be used to set Launch and Zoom?
I do not understand what you mean when you say "a high subtrim max up to trim it down" - please explain further
I notice that you have limited the elevator throw to go from -50 to +100 in OUTPUTS. This obviously limits the max. deflection.
I use the regular trims to set offsets for the various flight modes. So to give it some up elevator during Launch , I hold the launch switch while giving it some up trim. I notice that your trim is neutral for Launch.
I also see that you have full up elevator trim during Zoom. This is odd, as I normally give it neutral to a little down during Zoom to make the plane track straight after I release the launch switch.

I hope that some of this was helpful. Please keep asking until we get it sorted out

Jesper
Jan 24, 2016, 05:21 PM
Registered User
Ops I was not being very clear.

Yup the Fireblade setup....
when I go to Launch and Zoom mode, the elevator have a lot of up on my DLG. I had to use the elevator trim to push it down and running out of trim level for further adjustment. See pictures... The interesting thing is it is not affecting my cx2 setup...i tired to compare but could not figure out the difference.


Quick Reply
Message:

Thread Tools