- Posts: 13
Independent trims for flight modes
- Hayataro
- Offline
By my language barrier, I can't understand how many "flight-modes" can I make.
I saw source codes and found descriptions "FMOD0 FMOD1 DMOD2".
Do there mean only 3 indipendent trim sets (=flight modes) can be make?
Or over 5 modes? I'm a sailplane flyer so I need 4 or 5 flight-modes.
using same ID in RCGroups.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
I don't think it is normal behaviour.
It's related to next commit:
github.com/DeviationTX/deviation/commit/...c0a3ec01d4a28a7f9d6d
I don't know what is #600 issue.
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
www.deviationtx.com/forum/3-feedback-que...modes?start=20#10763
I think will be better to return it back.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
I don't know if it has any sense. Too many virtual channels were used.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
How do you do that?
Name the virtual channels as for example: vsw0, vsw1, vsw2, vsw3, vsw4 and select "vsw" somehow?
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
But now something went wrong. I need additional testing. Probably I miss something.
Please Log in or Create an account to join the conversation.
- Hayataro
- Offline
- Posts: 13
using same ID in RCGroups.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Hayataro, work in progress. Right now you can use 3 independent trims set, assign to trim "Switch" (at trim properties) any 3-pos switch, position 0, for example "FMODE0".
After fix will be applied you can use "FMODE" for 3 trims set. With next fix you can use 4-6 contiguous virtual channels to setup 4-6 pos switch, assign to trims "Switch" first virtual channel and you will have 4-6 trims set.
Right now I testing 6-pos virtual channels switch (it use GEAR and FMODE switches) and 6 independent trims set. The virtual channels switch at any state should have only single channel with +100% value, all others -100%.
[virtchan1]
template=complex
[mixer]
src=FMODE0
dest=Virt1
usetrim=0
curvetype=expo
points=0,0
[mixer]
src=AIL
dest=Virt1
switch=GEAR1
scalar=-100
usetrim=0
curvetype=fixed
[virtchan2]
template=complex
[mixer]
src=FMODE1
dest=Virt2
usetrim=0
curvetype=expo
points=0,0
[mixer]
src=AIL
dest=Virt2
switch=GEAR1
scalar=-100
usetrim=0
curvetype=fixed
[virtchan3]
template=complex
[mixer]
src=FMODE2
dest=Virt3
usetrim=0
curvetype=expo
points=0,0
[mixer]
src=AIL
dest=Virt3
switch=GEAR1
scalar=-100
usetrim=0
curvetype=fixed
[virtchan4]
template=complex
[mixer]
src=FMODE2
dest=Virt4
usetrim=0
curvetype=expo
points=0,0
[mixer]
src=AIL
dest=Virt4
switch=GEAR0
scalar=-100
usetrim=0
curvetype=fixed
[virtchan5]
template=complex
[mixer]
src=FMODE0
dest=Virt5
usetrim=0
curvetype=expo
points=0,0
[mixer]
src=AIL
dest=Virt5
switch=GEAR0
scalar=-100
usetrim=0
curvetype=fixed
[virtchan6]
template=complex
[mixer]
src=FMODE1
dest=Virt6
usetrim=0
curvetype=expo
points=0,0
[mixer]
src=AIL
dest=Virt6
switch=GEAR0
scalar=-100
usetrim=0
curvetype=fixed
[trim1]
src=LEFT_V
pos=TRIMLV+
neg=TRIMLV-
switch=Virt1
value=-1,-12,-26,-38,-52,-64
[trim2]
src=RIGHT_V
pos=TRIMRV+
neg=TRIMRV-
switch=Virt1
value=-1,-12,-26,-38,-52,-64
[trim3]
src=LEFT_H
pos=TRIMLH+
neg=TRIMLH-
switch=Virt1
value=-1,-11,-23,-39,-53,-64
[trim4]
src=RIGHT_H
pos=TRIMRH+
neg=TRIMRH-
switch=Virt1
value=-1,-11,-25,-39,-52,-65
Please Log in or Create an account to join the conversation.
- Hayataro
- Offline
- Posts: 13
3 flight modes are minimum for sailplane pilots, because FM0->Cruise(largest L/D), FM1->Thermal(Minimum sink ratio), FM2->Launch(Minimul drag), luck of "Speed mode" runs in windy days.
Could you please add another 1 or 2 modes to Deviation?
If so, using T8SG(plus) / iR8M will be to very powerful equipment for us.
using same ID in RCGroups.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Add support for 6 independent trims set #347
You can use 4-6 contiguous virtual channels to setup 4-6 pos switch, then assign to trims "Switch" the first used virtual channel and
you will have 4-6 independent trims set. The virtual channels switch at any state should have only single channel with +100% value,
all others -100%. It's intended for for 4-6 flight modes with independent trims settings.
Please Log in or Create an account to join the conversation.
- Hayataro
- Offline
- Posts: 13
Whitch filmware shoud I use? Please tell me... vlad_vy-san.
using same ID in RCGroups.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- Hayataro
- Offline
- Posts: 13
I own iRangeX iR8M. Nightly build for T8SG is suit for this TX?
using same ID in RCGroups.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
www.deviationtx.com/forum/builds/7605-irangex-irx-ir8m-builds
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
www.deviationtx.com/forum/builds/7605-ir...rx-ir8m-builds#67301
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
In other words:
pos1 = -100% to -67%
pos2 = -67% to -34%
pos3 = -34% to -1%
pos4 = -1% to 32%
pos5 = 32% to 65%
pos6 = 65% to 100%
This way we need only one virtual or any channel to switch sets of trims.
s8 *MIXER_GetTrim(unsigned i)
{
if (Model.trims[i].sw) {
int num_positions = INPUT_NumSwitchPos(Model.trims[i].sw);
if (num_positions != 0) {
for (int j = 0; j < num_positions; j++) {
// Assume switch 0/1/2 are in order
if(raw[Model.trims[i].sw + j] > 0) {
return &Model.trims[i].value[j];
}
}
} else {
for (int j = 0; j < 6; j++) {
// Assume channel switch step is 3333
if((raw[Model.trims[i].sw] > CHAN_MIN_VALUE + 1 + j * 3333) &&
(raw[Model.trims[i].sw] <= CHAN_MIN_VALUE + 1 + (j + 1) * 3333)) {
return &Model.trims[i].value[j];
}
}
}
}
return &Model.trims[i].value[0];
}
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Please Log in or Create an account to join the conversation.
- Home
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Independent trims for flight modes