Fig Newton Registered User Thread OP

Discussion FrSky Taranis Quick Takeback Trainer Mode for v2940 Here is my setup for this (firmware v2940 compatible):



Mixes

=====

CH 16

(+100%) Ele No Trim No DR/Expo

(-100%) PPM3 No Trim

(+100%) Ail No Trim No DR/Expo

(-100%) PPM2 No Trim



Custom Switches

============

CS1 |a|>x CH16 20

CS2 a~x GV1 20 And !CS3

CS3 a~x PPM1 0 And !CS2



Custom Functions

=============

CF1 SH↓l Adjust GV1 Value 20 ON

CF2 CS1 Adjust GV1 Value 0 ON

CF3 CS2 Trainer 0 ON

CF4 CS2 Play Track trainon 0 ---

CF5 !CS2 Play Track trainoff 0 ---

CF6 CS3 Adjust GV1 Value 0 ON



So GV1 is used to set Trainer mode. If it's set to 0, then trainer mode is off. If it's set to 20 then trainer mode is on.



CF 1 - SH↓l sets GV1 to 20. This then triggers the custom switch CST to true. That in turn triggers CF3 to turn on trainer mode, and CF4 to announce trainer mode is on. At that point any input from the student radio aileron or elevator input is mixed in to channel 16, and then subtracted back out using the -100% corresponding PPM value. This channel should stay at 0 until either the aileron or elevator are pushed on the Taranis. At that point (stick is moved on the trainer radio) the elevator and/or aileron value is added or subtracted from CH16, but since there will not be a corresponding PPM value it will move CH16 up or down.



Custom switch CS1 will then be triggered when the value goes over or below by 20. I used a value of 20 here because the lower the number the more sensitive the trigger is. I didn't want it too sensitive. At this point when CS1 is triggered, it fires off CF2 which then sets GV1 back to 0. That in turn sets CS2 to false and trainer mode goes off. CF5 anounces it.



So after some testing it looks like with v2940 firmware if you do not have a trainer radio attached and engage trainer mode, the throttle will go to value 0. Seems all of the inputs are zeroed including the throttle. So CS3 does a check on the throttle PPM and if it's 0, then it stops the arming of trainer mode in CS2 using the "AND !CS3". This check (CS3) is not performed if trainer mode is already engaged using the "AND !CS2". This keep trainer mode from being turned on and off as the trainer radio moves the throttle up or down through the 0 value (half throttle). Since we can only test PPM values, if the trainer radio has the throttle half way and you try and engage trainer mode, it won't arm. So for the trainer to take the model they have to be off half throttle, probably best to have them at throttle off position depending on the model I guess.



CF6 is there so that in the rare case that a trainer radio is plugged in and is at half throttle when trainer mode is attempted, it won't go to trainer mode as soon as they adjust the throttle. What was happening was everything was ready to arm trainer mode and the trainer throttle was at 0 (half throttle), but since CS3 read it as 0, trainer mode was not engaged. But the second the trainer throttle was moved off half throttle, all conditions were met to engage trainer mode - 1) toggle was pulled and GV1 set to 20, but since CS2 wasn't met, trainer mode wasn't set in CF3. This resulted in a situation where as soon as CS3 was tripped (moving the trainer throttle off half if connected) then trainer mode armed, which could have been anytime after the SH↓l was pulled. Since it would be totally unexpected when it armed trainer mode, it is best to set GV1 back to 0 if CS3 is true. This prevents any unexpected late trainer mode engagement.



If you want to see the PPM1 input for testing, you can set up a mix on CH15 to PPM1, but it isn't required for this to work. I used it strictly for testing purposes.



Here is a eepe file (zipped) with this setup tested and working.



Edit: adding in some info. After spending an hour with a student connected I found that if they start wildly moving the aileron and elevator, the CH16 value can sometimes wander causing trainer mode to be cancelled. This is actually a good thing in my opinon, but also the reason I bumped up CS1 to be a value of 20. I had it set to 10 initially and it seemed to trigger more, turning off trainer mode without me actually touching the sticks on the Taranis. Another interesting side effect of this setup is that to be able to re-arm trainer mode, the student needs to let his/her aileron/elevator stick go back to center. Which is also a good thing in my opinion. Gives them control of the plane where they aren't full throw with one of their sticks. Not only did this give me confidence that I could just take back over control, but it put my Dad at ease that all I had to do was just take over. It's the first time I have been able to get him to use trainer mode in years, and I think he's comfortable enough with it that he will give some other planes a try. Makes me happy!! Files View all Files in thread WorkingTrainer_quicktakeb... (7.0 KB) 135 views zip