FreeJoy icon indicating copy to clipboard operation
FreeJoy copied to clipboard

When disabling special funtion "equal" on encoding axis using a toggle function, please retain last equal value instead of resetting to last known value

Open recoilfx opened this issue 3 years ago • 3 comments

I built a single lever throttle, and have an encoder as a second throttle axis.

The encoder axis has the special function "equal", toggled by a switch button. So by default, the encoder axis always have the same value as the main lever axis, and when the toggle switch is off, I effectively have 2 throttle axes.

However, currently, if I toggle the switch off, the value of the encoder axis reverts to last known value before having the equal function on, which can be a huge change when compared to the last equal value (and sending my plane into a tail spin while I frantically rotate my encoder axis to the correct throttle value). Can we have an option where it simply retains the last equal value when disabling the special function?

Thank you so much!

recoilfx avatar Aug 23 '21 01:08 recoilfx

hmm, I think I can add this

vostrenkov avatar Aug 23 '21 18:08 vostrenkov

hmm, I think I can add this

no so easy though..

when "equal" is active the value is copied at the end of all modifications (inverting, scaling, shaping, trimming, etc). But when you disable it axis should have own scaling. So to "remember" last copied value I need to get copied value, make reverse modification and store it into raw axis value.

vostrenkov avatar Aug 23 '21 19:08 vostrenkov

I see. Well, it would be awesome if it's implemented. This allows users with single lever throttle to emulate dual throttle axes with an encoder in the rare occasions when one engine goes wrong. Thank you for all your hard work!

recoilfx avatar Aug 24 '21 16:08 recoilfx