Jump to content
The simFlight Network Forums

Lua Correct ipc.Write


Recommended Posts

hello 

 

I'm using LUA to extra values from the aerosoft airbus.

 

I've used writeUB as an example, obviously this limits the value to 255, then back to zero.

 

What would be the right option?  DD?

 

Many thanks

 

AB_AP_SPEED_Select_OFFSET = 0x66C3
AB_AP_HDG_Select_OFFSET = 0x66C4


function Autopilot_AP_SPEED_Select(varname, value)
       ipc.writeUB(AB_AP_SPEED_Select_OFFSET, value)
end


function Autopilot_AP_HDG_Select(varname, value)
       ipc.writeUB(AB_AP_HDG_Select_OFFSET, value)
end

 

Link to comment
Share on other sites

Hi,

First character U=Unsigned and S=Signed
Second character B=Byte, W=Word (=2 Bytes), D=Double (=4 Bytes).

1 Byte = 8 bits = 0..255

I don't know the Airbus interface but that's the logic behind the several ipc.writeXY() functions.

 

Rgds

Reinhard

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.