Virtual axis multiple input methods

Moderator: AdminGroup

h00ch1sCr4zy
Posts: 6
Joined: Sun Dec 24, 2023 13:12
Has thanked: 1 time

Virtual axis multiple input methods

Postby h00ch1sCr4zy » Sun Dec 24, 2023 13:25

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 =)

Alex Oz
Posts: 1163
Joined: Mon May 12, 2008 9:10
Location: Минск
Has thanked: 12 times
Been thanked: 125 times

Re: Virtual axis multiple input methods

Postby Alex Oz » Wed Dec 27, 2023 14:16

Крайние прошивки и софт / Latest firmware & software
viewtopic.php?f=15&t=908
http://alex-oz.strana.de

h00ch1sCr4zy
Posts: 6
Joined: Sun Dec 24, 2023 13:12
Has thanked: 1 time

Re: Virtual axis multiple input methods

Postby h00ch1sCr4zy » Wed Dec 27, 2023 14:45

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?

Alex Oz
Posts: 1163
Joined: Mon May 12, 2008 9:10
Location: Минск
Has thanked: 12 times
Been thanked: 125 times

Re: Virtual axis multiple input methods

Postby Alex Oz » Wed Dec 27, 2023 16:18

Крайние прошивки и софт / Latest firmware & software
viewtopic.php?f=15&t=908
http://alex-oz.strana.de

h00ch1sCr4zy
Posts: 6
Joined: Sun Dec 24, 2023 13:12
Has thanked: 1 time

Re: Virtual axis multiple input methods

Postby h00ch1sCr4zy » Wed Dec 27, 2023 17:30

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 =)

Alex Oz
Posts: 1163
Joined: Mon May 12, 2008 9:10
Location: Минск
Has thanked: 12 times
Been thanked: 125 times

Re: Virtual axis multiple input methods

Postby Alex Oz » Wed Dec 27, 2023 17:43

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
Крайние прошивки и софт / Latest firmware & software
viewtopic.php?f=15&t=908
http://alex-oz.strana.de

h00ch1sCr4zy
Posts: 6
Joined: Sun Dec 24, 2023 13:12
Has thanked: 1 time

Re: Virtual axis multiple input methods

Postby h00ch1sCr4zy » Wed Dec 27, 2023 18:09

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

Alex Oz
Posts: 1163
Joined: Mon May 12, 2008 9:10
Location: Минск
Has thanked: 12 times
Been thanked: 125 times

Re: Virtual axis multiple input methods

Postby Alex Oz » Wed Dec 27, 2023 19:12

I still don't understand the final goal
Крайние прошивки и софт / Latest firmware & software
viewtopic.php?f=15&t=908
http://alex-oz.strana.de

h00ch1sCr4zy
Posts: 6
Joined: Sun Dec 24, 2023 13:12
Has thanked: 1 time

Re: Virtual axis multiple input methods

Postby h00ch1sCr4zy » Wed Dec 27, 2023 19:37

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.

Ron61
Posts: 3277
Joined: Tue Jan 15, 2013 23:56
Location: г.Минск
Has thanked: 44 times
Been thanked: 637 times

Re: Virtual axis multiple input methods

Postby Ron61 » Wed Dec 27, 2023 20:33

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?

h00ch1sCr4zy
Posts: 6
Joined: Sun Dec 24, 2023 13:12
Has thanked: 1 time

Re: Virtual axis multiple input methods

Postby h00ch1sCr4zy » Wed Dec 27, 2023 21:26

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.

Alex Oz
Posts: 1163
Joined: Mon May 12, 2008 9:10
Location: Минск
Has thanked: 12 times
Been thanked: 125 times

Re: Virtual axis multiple input methods

Postby Alex Oz » Thu Dec 28, 2023 22:33

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.
Крайние прошивки и софт / Latest firmware & software
viewtopic.php?f=15&t=908
http://alex-oz.strana.de


Return to “General discussions”

Who is online

Users browsing this forum: No registered users and 92 guests