LN-DIG Posted October 5, 2022 Report Posted October 5, 2022 Hi, I am trying to write negative LVar to the S_FCU_VERTICAL_SPEED. This is the LVar for one of the autopilot knobs in the Fenix A320. When the knob is pushed in the variable is decreased by one, if the knob is pulled it is increased by one. By writing to the variable, I can replicate the knob push/pull behavior as long as the variable is >= 0. But it seems I’m unable to write negative numbers. Nothing happens, the variable does not get updated, keeps the old value. Tried in code via using FSLVar.SetValue(x), but also via WASMClient. Testet last versions FSUIPC (7.3.11) / WAPIID dll (0.9.0) / fsuipcClient.dll (3.2.21). WASMClient from current package (FSUIPC WASM Module 0.9.0 + WAPI 0.9.0) Is there a bug somewhere, a limitation by design, or user error by me?
John Dowson Posted October 6, 2022 Report Posted October 6, 2022 It seems that writing lvars as negative integers isn't functioning correctly. I will look into this. but you can get it working by using a decimal value, e.g. "-1.0". John
John Dowson Posted October 6, 2022 Report Posted October 6, 2022 The problem is in the WASM - it will be corrected in the next release. In the mean time, you can use the attached - use these to replace the files in your Community\fsuipc-lvar-module and your Community\fsuipc-lvar-module\modules folders. The WASM version number is the same - I will update this when released. John layout.json FSUIPC7_WASM.wasm
LN-DIG Posted October 6, 2022 Author Report Posted October 6, 2022 Used the two new files in a quick test. Can confirm everything works in my end. Superb, thanks 😊
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now