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?
Different curves for each direction?
- 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?
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!
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!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
Re: Different curves for each direction?
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
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
Re: Different curves for each direction?
What do you mean with 'both directions'?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?
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
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Different curves for each direction?
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
-
- Posts: 236
- Joined: Tue Dec 27, 2011 11:19 pm
- Country: -
- Location: Don Mills, Ontario
Re: Different curves for each direction?
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
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
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Different curves for each direction?
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Different curves for each direction?
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
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