- Posts: 168
The mixing system, how to?
- MatCat
- Topic Author
- Offline
Currently I have Ch5 mixer set with 3 pages, on page 1 there is a min/max curve set to be low at -100 and high at 0 and to add to ch5, and is set to happen on fmode 0 with a src of Elev DR, now page 2 has min/max curve for fmode0 set to add 12 to the channel, and page 3 has rudd d/r on fmode1 set ot add 25 to the channel, yet no output occurs at all, what am I missing?
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
your 1st mixer should almost always be a 'replace' type and NOT have a switch associated with it.
I can't duplicate your mixer definition from your description, so I'm not exactly sure how to help at this point.
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Basically binary encoding over the channels... I.E. use Ch5 to 7 as multiplexer for 4 to 5 bit per channel, ultimately I am going to program the logic into the radio itself, but for experimenting I feel this can be done with just the switches.
Flight Mode Switch: (% given is total throw of the channel)
Pos 0: Set CH5/CH6 0%
Pos 1: Set CH5 50%
Pos 2: Set CH6 50%
Rudd D/R:
Add 25% to CH5
Elev D/R:
Add 12% to CH5
Gear D/R:
Add 6% to Ch5
Ail D/R:
Add 25% to Ch6
Mix 1: Add 12% to Ch6
Mix 2: Add 6% to Ch6
Doing so I can read the PWM output from RX on the plane, and determain the exact position of all 6 switches from 2 channels as outlined above.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Ch5:
Mixer1:
Src RUD DR, switch=none, curve=zero/Max, scale=50, offset=-100, type=replace
Mixer2:
src ELE DR, switch=none, curve=zero_max, scale=12, type = add
Mixer3:
src (anything but none), switch = FMODE1, curve=fixed, scale=50, type=add
Ch6:
Mixer1:
Src=AIL DR, switch = none, curve=zero/max, scale=50, offset=-100, type=replace
Mixer2:
src=(anything), switch = FMODE2, curve=fixed, scale=50, type=add
Mixer3:
src=(anything), switch = mix1, curve = fixed, scale = 12, type = add
Mixer4:
src=(anything), switch = mix2, curve = fixed, scale = 6, type = add
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
always start with the channel test page, then verify with the servos.
I have tested the above, and it does work properly, so either I mistyped it, or you mis-entered it. I can't do it right now, but if you can't get it to work, I'll provide my model.ini file too.
or you can provide your model.ini file, and I can tell you what is wrong.
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
In this setup CH5 has a 5 bit resolution, starting with the smallest being 3% of output, which is tied to Ail. DR, the 6% bit is Gear switch, the 12% bit is Ele D/R, 24% is Rud. D/R, 48% is Fmode1, on Channel 6 Fmode2 is the 3% bit, Mix1 is the 12% bit, and Mix2 is the 24% bit.
The device RX side will read the PWM's and decode the timing to figure out exactly what state all 6 switches are in using only 2 channels, with 2 bits more resolution available on Ch6.
Ultimately there is no limit to how this type of setup could be used, with some clever software on the radio itself even more complex things are capable.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
The off values of the switches which are added should be all zeroes.
It would be better to use them as switch inseat of source and use the fixed function to add the necessary value, as PB has written.
And one more hint: increase the channel's scale to maximum (=150) for better resolution at the receiver side...
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
At first I tried PB's settings but it just put the channel to 100% every time.
Besides once I have my 433MHz module working I am going to code up USART connection via trainer port then ALL values will be exact hehe.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- General
- General Discussions
- The mixing system, how to?