gibbon Posted February 26, 2012 Report Share Posted February 26, 2012 Hello, I am starting with SIOC (4.01) and FSUIPC (3.9 Feb10th) on FS2004 (FS9.1, King Air 350) with basic steps to define my cockpit building plan. I am stuck with the following. I created 3 basic FSUIPC INOUT variables in SIOC, to interact GEAR, AP Heading and AP Altitude. I use IOCP Console to monitor the variables - The IN way has always worked fine (when playing the game I can see the values are changing on IOCP Console) - The OUT way (when I send value via IOCP Console -> get the actual game changing) worked only for AP Heading at the beginning. Then later on (I don't know what has changed) Gear command worked. At the moment if I send values on IOCP Console for AP heading and gear, I can see on the King Air 350 cockpit the Heading moving and the gear toggle moving. But for some reason, I can't get the AP ALT value changing on the cockpit if I send ALT values on the AP_ALT variable on IOCP Console. I checked with FSInterrogate (2.02) that FSUIPC get the AP ALT value change when I send the new value on IOCP Console, but it does not show on the cockpit. This is why I am posting this as I believe problem is between FSUIPC and FS2004 but below is the SIOC.ssi code if this can help. I am lost. Could anyone help me ? Would much appreciate. Thank you ! SIOC.ssi code Var 0000, name AP_HDG, Link FSUIPC_INOUT, Offset $07CC, Length 2 Var 0001, name GEAR, Link FSUIPC_INOUT, Offset $0BE8, Length 4 // 16383 = Down Var 0002, name AP_ALT, Link FSUIPC_INOUT, Offset $07D4, Length 2 Link to comment Share on other sites More sharing options...
Pete Dowson Posted February 26, 2012 Report Share Posted February 26, 2012 Var 0000, name AP_HDG, Link FSUIPC_INOUT, Offset $07CC, Length 2 Var 0001, name GEAR, Link FSUIPC_INOUT, Offset $0BE8, Length 4 // 16383 = Down Var 0002, name AP_ALT, Link FSUIPC_INOUT, Offset $07D4, Length 2 I don't know SIOC at all, but the AP ALT is 4 bytes and contains the altitude setting in Metres times 65536. So the two bytes you are using represents the number of 1/65536ths of a metre. I don't know any aircraft which has an Altitude display which could possibly show such small fractions of a metre, and if you don't change the other two bytes (the whole number of metres) then the displayed whole number is unlikely to change either. Please do use the documentation (the offsets list) for the values you want to change. You will see them described correctly. Pete Link to comment Share on other sites More sharing options...
kiek Posted February 26, 2012 Report Share Posted February 26, 2012 Hi Gibbon , Here some tutorials how to read, write and read/write from/to FSUIPC offsets from SIOC: http://www.lekseecon...html#readFSUIPC http://www.lekseecon...tml#writeFSUIPC http://www.lekseecon...readwriteFSUIPC And study the list of FSUIPC offsets (inthe FSUIPC SDK) carefully... And do note that you cannot be sure that an aircraft add-on supports the published FSUIPC offsets. Link to comment Share on other sites More sharing options...
gibbon Posted March 3, 2012 Author Report Share Posted March 3, 2012 thank you everyone, you were right. I corrected the offset lenght. But anyway SIOC does not allow me to send large value, so that is why cockpit does not show the effect. But FS Interrogate confirms to me values get changed. Thank you ! Link to comment Share on other sites More sharing options...
Pete Dowson Posted March 3, 2012 Report Share Posted March 3, 2012 thank you everyone, you were right. I corrected the offset lenght. But anyway SIOC does not allow me to send large value, so that is why cockpit does not show the effect. But FS Interrogate confirms to me values get changed. SIOC can't send 32-bit numbers? That's bad. Since the AP Altitude is 65536 x metres, you could try just sending the whole number of metres as 2 bytes to offset 07D6. You'd only get 3.2 feet accuracy of course, but most autopilots round to the nearest 100, or at least 50, un any case. Regards Pete Link to comment Share on other sites More sharing options...
kiek Posted March 3, 2012 Report Share Posted March 3, 2012 SIOC can't send 32-bit numbers? Sure it can. Every SIOC variable is 32 bit, so there is really no problem to send that value to a 4 byte FSUIPC offset.... And again, are you sure your Aircraft add-on in MFS 'supports' the FSUIPC offset? Seeing (with FS Interrogate) the value arrive at FSUIPC, proves nothing ... 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