- Posts: 50
Please help me Understand Deviation Complex Mixers
- stringrazor
- Topic Author
- Offline
I'm looking to create a Deviated Devo 7E program for my new Nano CPS. There's an ini file on the deviation forum but it's for the 8S and doesn't work the way I want. The NCPS has 3 flight modes and a PANIC recovery function. As I understand it, these modes and functions are controlled via values on CH 5 as follows:
Stability - panic off:+100 Panic on: +140
Agility - panic off: 0 Panic on :+ 40
3D - panic off: -100 Panic on: - 60
I think I just need 2 modes, Stability and 3D. I'd like to use the throttle trim as a momentary button for the panic function.
Unfortunately, I still don't understand how to set up virtual channels and buttons. Can someone help me build this ini?
Update: I think I did it through trial and error. The process of getting the right values didn't make much sense to me but the channel monitor reports the correct output for non panic stability and 3D and the TH trim sends out the correct panic value based on the FMODE SW position. I wont get to fully test it with the NCPS for a few days.
I followed a tutorial doc for creating programs listed in the Deviation forum tutorial thread. The part that baffles me though is getting two exact values out on ch5 using 2 complex mix pages. It was like herding cats. I ended up using the min/max curve type but had to play with the scale and offset for an hour to get the right values. The way the values were affected didn't seem to completely sense and I saw a lot of unexpected results. If some one could point me to a clear explanation of how that works ...or is supposed to work. .. I'd really appreciate it.
I will attach my current ini file later this evening...
Please Log in or Create an account to join the conversation.
- stevecox
- Offline
- Keep swinging
Adelaide
Please Log in or Create an account to join the conversation.
- stringrazor
- Topic Author
- Offline
- Posts: 50
Please Log in or Create an account to join the conversation.
- stevecox
- Offline
- Keep swinging
[channel7]
template=complex
[mixer]
src=FMODE0
dest=Ch7
switch=FMODE0
scalar=-100
curvetype=fixed
[mixer]
src=FMODE0
dest=Ch7
switch=FMODE1
scalar=0
curvetype=fixed
[mixer]
src=FMODE0
dest=Ch7
switch=FMODE2
curvetype=fixed
Adelaide
Please Log in or Create an account to join the conversation.
- stringrazor
- Topic Author
- Offline
- Posts: 50
Stability - panic off:+100 Panic on: +140
3D - panic off: -100 Panic on: - 60
When FMODE0 is true, I want the CH5 page1 mixer to output +100. If the TH Trim is pressed, I want the same mixer to output +140
When FMODE1 is true , I want the CH5 page2 mixer to output -100. If the TH Trim is pressed, I want the same mixer to output -60.
Please Log in or Create an account to join the conversation.
- mwm
- Offline
stringrazor wrote: When FMODE0 is true, I want the CH5 page1 mixer to output +100. If the TH Trim is pressed, I want the same mixer to output +140
When FMODE1 is true , I want the CH5 page2 mixer to output -100. If the TH Trim is pressed, I want the same mixer to output -60.
Complex mixer, two mixes. First has a source of FMODE0, curve of min/max. That should output 100 on FMODE0 and -100 on FMODE1, and is covered in the tutorial.
Set up your throttle trim as a virtual momentary switch. This is covered in both the tutorial and the manual. Note set up the second mix with a fixed curve with a value of 40. User the virtual switch to enable it. Finally, make it an add mux, so you add 40 to the previous output when the switch is on. The trick is the ADD mux, which isn't covered in the tutorial.
If I've understood your requirements properly, this should do it. But test it on the channel monitor, making sure you've got the first mix and virtual channel working properly before setting up the second mix.
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- RoGuE_StreaK
- Offline
- Posts: 486
Please Log in or Create an account to join the conversation.
- stringrazor
- Topic Author
- Offline
- Posts: 50
mwm wrote:
stringrazor wrote: When FMODE0 is true, I want the CH5 page1 mixer to output +100. If the TH Trim is pressed, I want the same mixer to output +140
When FMODE1 is true , I want the CH5 page2 mixer to output -100. If the TH Trim is pressed, I want the same mixer to output -60.
Complex mixer, two mixes. First has a source of FMODE0, curve of min/max. That should output 100 on FMODE0 and -100 on FMODE1, and is covered in the tutorial.
Set up your throttle trim as a virtual momentary switch. This is covered in both the tutorial and the manual. Note set up the second mix with a fixed curve with a value of 40. User the virtual switch to enable it. Finally, make it an add mux, so you add 40 to the previous output when the switch is on. The trick is the ADD mux, which isn't covered in the tutorial.
If I've understood your requirements properly, this should do it. But test it on the channel monitor, making sure you've got the first mix and virtual channel working properly before setting up the second mix.
Got it, thanks. I see I was making it much harder than I needed to. I'm beginning to understand now...
Please Log in or Create an account to join the conversation.
- Home
- Forum
- General
- General Discussions
- Please help me Understand Deviation Complex Mixers