Different curves for each direction?

Programing help and example for all firmwares based on thus's th9 firmware.
Post Reply
manu
Posts: 106
Joined: Thu Dec 29, 2011 7:02 am
Country: -
Location: St. Gallen, Switzerland

Different curves for each direction?

Post by manu »

I'm planning to program the servo movement for a retractable motorpod. To achieve this I need separate curves for both directions.
Is this possible?

User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Different curves for each direction?

Post by Rob Thomson »

My initial thoughts are..

two mixes. one set for x>0 the other for x<0

But sure someone else will have a better plan!
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Different curves for each direction?

Post by jhsa »

If it's only onw servo I think you can use only one curve for both directions..
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Different curves for each direction?

Post by ReSt »

manu wrote:I'm planning to program the servo movement for a retractable motorpod. To achieve this I need separate curves for both directions.
Is this possible?
What do you mean with 'both directions'?

one direction from 0 to -100 (negative) and the other direction from 0 to + 100 (positive) or
one direction from -100 to +100 and the other direction from +100 to -100 ?


Reinhard
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Different curves for each direction?

Post by MikeB »

It might be more useful if you could describe exactly how you wish the output to move. As it is retracts, are they controlled by a switch?
If so, start with assume the switch is set with the retracts down. You change the switch to move the retracts up - what should happen?
Then the retracts are up, you change the switch to move them down - now what should happen?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

pmackenzie
Posts: 236
Joined: Tue Dec 27, 2011 11:19 pm
Country: -
Location: Don Mills, Ontario

Re: Different curves for each direction?

Post by pmackenzie »

Perhaps he means different speed profiles going up versus down?
That can be done by using a few mixes and curves along with the speed profiles.

Or perhaps sequencing the covers for the motor pod? Again that can be done.

Not much you can't get done in ER9X, but you do have to know exactly what it is you want. :)

Pat MacKenzie
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Different curves for each direction?

Post by MikeB »

If you really want different curves in each direction:
Custom Switch 1: OR SW3 !SW2
Custom Switch 2: OR SW4 !SW1
Custom Switch 3: V>ofs CH6 99
Custom Switch 4: V<ofs CH6 -99
Curve1 one direction eg: -100 -13 45 81 100
Curve2 other direction eg: -100 -83 -55 -6 100
CH08 +100 FULL Switch(GEA) slow(u3:d3)
Ch06 +100% CH8 Switch(SW1) Curve(c1)
Ch06 R +100% CH8 Switch(SW2) Curve(c2) (Replace mix, not add)

Flip the gear switch, ch6 follows ch8, but with a different curve in each direction.

Edit to suit the requirement.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Mulder
Posts: 1
Joined: Sat Jan 21, 2012 4:09 pm
Country: -

Re: Different curves for each direction?

Post by Mulder »

create a flip-flop logic. then apply the curves depending on the state of the flip-flop. the flipflop switches each time you hit the limits, but you always have to go the full way... stopping half way and going backwards would not switch the curves.

i have attached a sample config. am just starting with er9x, sure there are more ways to solve this and probably more elegant too :)
Attachments
FlipFlop.eepm
flip flop switch
(1.63 KiB) Downloaded 284 times

Post Reply

Return to “er9x / gruvin9x / th9 based firmwares”