markusr Posted January 16, 2010 Report Posted January 16, 2010 Hi Pete, iam trying to get my hardware overhead runnign with FSUIPC. I have connected a Joystick card to the pc and on this card are the switches connected. In FSUIPC i opened the Buttons and Switches page, pressed one switch and enabled FS control. From the dropdown menue i have selected "Offset Byte set" to the Offset number 66FE with Parameter x01 when its pressed. When its released set to Offset Byte set number 66FE Parameter 0. When i look in SIOC (OPencockptis config tool) i can see that the Offset number 66FE is set to 1, but the following number 66FD is set to 256. When i push then the next switch which is configured to set 0 and 1 at parameter 66FD the following happens (see screenshot 2). Do you have any idea what i have done wrong? Thanks Markus
markusr Posted January 16, 2010 Author Report Posted January 16, 2010 i think i found the issue. It was on the SIOC side, the variables were defined as Length 2 and not 1. I have changed it now, and it seems to work. regards, Markus
Pete Dowson Posted January 16, 2010 Report Posted January 16, 2010 When i look in SIOC (OPencockptis config tool) i can see that the Offset number 66FE is set to 1, but the following number 66FD is set to 256. 66FD is the byte BEFORE 66FE. A byte is 8 bits only and cannot contain a number as big as 256. The value 256 in a 16 bit word is a 1 in its high byte. Therefore is looks like the program you are using refers to WORDS (16 bit values, 2 Bytes long) not BYTES, whilst you are using a BYTE size FSUIPC control. Ah, I see you figured it out. Pete
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