Jump to content
The simFlight Network Forums

Problem writing negative values to LVar


Recommended Posts


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? 


Link to comment
Share on other sites

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.




Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.