Curves with variable coefficient!

General Help and support for the Taranis Radio.
Post Reply
jimbo385
Posts: 19
Joined: Wed Mar 27, 2013 8:58 am
Country: -

Curves with variable coefficient!

Post by jimbo385 »

This is an interesting one!

Is it possible with the current firmware (2.0.12) to set up curve and then use a pot to change the coefficient?

It would be handy for tuning a throttle curve for instance!

Cheers.

rcgyuk
Posts: 338
Joined: Sat Sep 15, 2012 2:51 pm
Country: -

Re: Curves with variable coefficient!

Post by rcgyuk »

I do something similar to fine tune Throttle to elevator mixing.

I set uo a custom function to Adjust GV2 with TrimT

(could use any GV)

Throttle doesn't use throttle trim, as electric motor.

Then I add a second line to the elevator, source Thr, weight GV2

In this instance, I set up a 3 point curve, -100,0 0,50 100,100 and then use the GV to change how much of the curve I use.

I trim the model (very floaty piper cub) to glide with motor off, using elevator trim, then with power on, I use throttle trim to change elevator compensation until it doesn't climb or dive under power.

Turns out I needed 12%

Is that the sort of thing you had in mind?

Regards
jimbo385
Posts: 19
Joined: Wed Mar 27, 2013 8:58 am
Country: -

Re: Curves with variable coefficient!

Post by jimbo385 »

Not quite!

I currently fly multirotors. I have a couple if throttle curves setup on a switch. Both are setup with 17 points one with a coefficient of 90% and the other with 80% so that I can see which gives me the fine control around the hover.

It would be great if I just had one curve but could change the coefficient via a pot.

Cheers
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Curves with variable coefficient!

Post by Kilrah »

What do you mean as "coefficient"?
You can multiply and/or add an offset to the output for example, which might be what you're looking for.
jimbo385
Posts: 19
Joined: Wed Mar 27, 2013 8:58 am
Country: -

Re: Curves with variable coefficient!

Post by jimbo385 »

Not quite!

Within the curves tab of Companion 2.0.12, I set the following;

Number of points to 17
Symmetrical f(x)= f(-x)
Then a coefficient of 90

This gives me a really nice curve that I can apply to throttle.

However, 90 is way too much!

Would like to keep all other parameters but use a pot to adjust the coefficient to make the curve variable. Then I can test this at the field. I tried to change at the field but I'd have to adjust each of the 17 points individually on the TX!

Cheers.

Helle
Posts: 577
Joined: Sat Jul 21, 2012 7:08 am
Country: -

Re: Curves with variable coefficient!

Post by Helle »

Hy,

you use a curve and a weight of 90% I think ?
then yes you can change the weight variable by using a Globale Variable GV at weight

But a GV normaly has -100% to +100%,
so you have to precalculate the Range for this
GV from 60 to 90% for example
and then use it as GV-Weight at your Mixer with the Kurve

here an example in three steps:

picture 451: Input I10: Precalculation S1 with weight 15% and offset 75% makes range 60% to 90%
calculation of weight: from 60% to 90% is 30 30/200= 15% ( -100% to +100% = 200 )
calculation of offset: middle from 60% to 90% is 75%

picture 452: Spezial Funktion: GV1 get the value from Input I10

picture 453: Mixer channel: Gas with Kurve 1 and weight with GV1


thats all,
you got what you need

The output at the channel is variabel with S1 60% to 90% and depending from the Gas-Kurve

Outputvalue = (Gasstick * Kurve-position) * S1-Range

Helle
Attachments
Mixer with Kurve  and GV1
Mixer with Kurve and GV1
Auswahl_453.png (7.2 KiB) Viewed 7533 times
GV1 get Value from Input
GV1 get Value from Input
Auswahl_452.png (10.23 KiB) Viewed 7533 times
Input precalculation S1 60 to 90%
Input precalculation S1 60 to 90%
Auswahl_451.png (10.24 KiB) Viewed 7533 times
jimbo385
Posts: 19
Joined: Wed Mar 27, 2013 8:58 am
Country: -

Re: Curves with variable coefficient!

Post by jimbo385 »

I'm afraid that really doesn't make any sense to me!

I am just trying to change a curve variable with a pot!
User avatar
MikeB
9x Developer
Posts: 17992
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Curves with variable coefficient!

Post by MikeB »

I think the problem is the coefficient you are talking about is only available in companion, and what it does is calculate the curve's points for you just to save you needing to enter them all 1 by 1. This coefficient is not available on the radio itself.
With the settings you are using, the curve you get is very like that when you set expo up.
I think you would get the same effect if you apply expo to the throttle, then you could use a global variable to adjust the amount of expo you use.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
jimbo385
Posts: 19
Joined: Wed Mar 27, 2013 8:58 am
Country: -

Re: Curves with variable coefficient!

Post by jimbo385 »

Now that makes sense!

Thanks Mike
Helle
Posts: 577
Joined: Sat Jul 21, 2012 7:08 am
Country: -

Re: Curves with variable coefficient!

Post by Helle »

Hy,
example
Expo as Global Variable
Expo 0% to 50% with S1
Mixer Gas at channel 8

in three steps
S1 precalculation 0% to 50%
GV1 from S1
Mixer with Expo from GV1
Helle
Attachments
Mixer Ch8  with Expo GV1 variable  0% to 50%
Mixer Ch8 with Expo GV1 variable 0% to 50%
Auswahl_456.png (8.07 KiB) Viewed 7502 times
Setting GV1 from I10
Setting GV1 from I10
Input   I10  S1 precalculation 0% to 50%
Input I10 S1 precalculation 0% to 50%
Auswahl_454.png (9.49 KiB) Viewed 7502 times
Last edited by Helle on Sat Nov 15, 2014 10:15 am, edited 3 times in total.
jimbo385
Posts: 19
Joined: Wed Mar 27, 2013 8:58 am
Country: -

Re: Curves with variable coefficient!

Post by jimbo385 »

Hi Hele,

Thanks for the example. I think that it was difficult to understand because of the language!

I'll have a look in companion.

Cheers

Post Reply

Return to “General help (FrSky Taranis radio)”