Page 1 of 1

Virtual axis multiple input methods

Posted: Sun Dec 24, 2023 13:25
by h00ch1sCr4zy
Hey everyone! First, I have to apologise in advance, not sure if I chose the right place to post this. But I feel a bit overwhelmed with all the functions devcfg has and I'm not sure I can achieve what I want.

I have a virtual axis set for RPM control, which is controlled by encoder trimming. What I want is to have a button to switch RPM control modes: 1 - control it as it is via encoder, 2 - control it via throttle axis (practically duplicate throttle axis values to rpm axis). Furthermore I'd love to have a LED indicator to depend on which mode I am currently in, but that doesn't really bother me since I have a reference for that behaviour by default (Gladiator NXT hat mode LED). I tried to look for some kind of manuals on this or similiar things, but didn't succeed, so here I am asking for help =)

Re: Virtual axis multiple input methods

Posted: Wed Dec 27, 2023 14:16
by Alex Oz

Re: Virtual axis multiple input methods

Posted: Wed Dec 27, 2023 14:45
by h00ch1sCr4zy
The link leads to 404 and contains my nickname, which is a little strange. Is it possible you pasted something you didn't intend to?

Re: Virtual axis multiple input methods

Posted: Wed Dec 27, 2023 16:18
by Alex Oz

Re: Virtual axis multiple input methods

Posted: Wed Dec 27, 2023 17:30
by h00ch1sCr4zy
It's now working, thanks!

I almost achieved what I wanted using the REMAP AUX function. There are 2 problems that I've faced:
1) My axis #7 isn't centered, so while REMAP is active it is not being changed while #4 is in 0-0.5 range. Throttle 0.5 to 1 range is actually moving #7 from 0 to 1.
2) The problem above is fixed by making #7 centered, but it leads to somewhat inconvinient thing: after turning REMAP off - #7 is set to 0.5. If it's not centered - I get the value it had before turning REMAP on.

Both of these behaviours are not what I expected to set up. I guess I'd need some way to keep #7 value after turning remap off but once again - not sure what to look for. Totally missed the AUX axes functionality before =)

Re: Virtual axis multiple input methods

Posted: Wed Dec 27, 2023 17:43
by Alex Oz
Not quite clear.
Logical axis No. 7 should generally be turned off and it does not matter whether it is centered or not.
For virtual manipulations there can be an axis number greater than 8, I used #7 for greater simplicity

Re: Virtual axis multiple input methods

Posted: Wed Dec 27, 2023 18:09
by h00ch1sCr4zy
Axis #7 was the first one without anything set to it that's why I used it for RPM control via encoder just like it was shown in your example.

I'm not sure why, but unchecking Cn toggle for #7 changes behaviour after remap activation as described in my previous message. I am using devcfg v0.92.95 and firmware v2.17.6

Re: Virtual axis multiple input methods

Posted: Wed Dec 27, 2023 19:12
by Alex Oz
I still don't understand the final goal

Re: Virtual axis multiple input methods

Posted: Wed Dec 27, 2023 19:37
by h00ch1sCr4zy
Well yeah, I must have described it badly.
In il-2 I wanted to control my RPM via encoder. But in some cases I want RPM to be fully synced with throttle so that I can control both with throttle wheel.

Re: Virtual axis multiple input methods

Posted: Wed Dec 27, 2023 20:33
by Ron61
As I understand it, you want to have two steering wheels on one car, you will drive one, and your wife will drive the other.
Where do you think a car will go at an intersection if your wife needs to go left and you need to go right? Have you imagined such a situation?

Re: Virtual axis multiple input methods

Posted: Wed Dec 27, 2023 21:26
by h00ch1sCr4zy
Sort of, yeah =) I know it's not something you'd call conventional, but for in-air situations I found myself often using params for throttle\rpm like 80\80, 90\90, 100\100 and wanted to setup joystick accordingly to try it out.

Re: Virtual axis multiple input methods

Posted: Thu Dec 28, 2023 22:33
by Alex Oz
I'm sorry, but I still don't understand your problem. Perhaps some graphic materials would help, but a verbal description does not help at all.