UCR
UCR copied to clipboard
Feature request: Axis merging "sum" mode
I have two controllers. Let's say i want to merge their X-Axis. With the current plugin i have only one viable choice by using 'average'. 'Greatest' is only good for throttle axis.
Now in 'average' mode if i pull one stick to the right (100%), i get 50% right on the virtual output. To get 100% i have to pull both sticks to the right.
I propose a simple new merge mode: 'Sum'
basically this should be sufficient:
outval := value1 + value2
With 'sum' i could use either of the controllers to control the full range of one axis.
I currently use this to allow steering the buggy in Elite Dangerous with both my pedals or my joystick. While i usually use the joystick to steer the buggy, i want to use the mouse when in turret mode and therefore switch to the pedals for steering. I am certain there are other scenarios where this could be helpful.
Ah, OK, what you want is "Greatest", but you need a greatest that measures from the center point, not from the end point. Will look into implementing this, shouldn't be too hard. Hopefully this weekend.
Exactly. I currently use the one liner above and it works well. A proper 'greatest from center' as you suggest would be a cleaner implementation of this.
Again, very nice work on UCR so far. Really intuitive to use now.
Oh, so you have been tweaking plugins? Please feel free to submit pull requests adding new functionality to plugins, and I also welcome feedback and suggestions as to how things should work from a plugin author's perspective - as yet, I have nobody testing this use-case.
Besides this, i haven't done any modifications. I only learned about UCR yesterday. I used your UJR before without modifications and 'cheated' the full range by calibrating the joystick through Windows.
Thinking about this Doc, won't we need to clamp the output to valid values? I think we should maybe add some extra functions to StickOps to handle this.
At least to improve code quality, yes. However i have had this as is working on my configuration in a "production" environment with no issues since i first suggested this. (Was my main SRV steering axis in Elite Dangerous)