hawkt1 Posted January 23, 2016 Report Share Posted January 23, 2016 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 More sharing options...
aua668 Posted January 23, 2016 Report Share Posted January 23, 2016 Hi,First character U=Unsigned and S=SignedSecond character B=Byte, W=Word (=2 Bytes), D=Double (=4 Bytes). 1 Byte = 8 bits = 0..255I 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 More sharing options...
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