Jump to content
The simFlight Network Forums

Using PM offsets for other applications


Recommended Posts

I've read through this forum and could not find anything about my problem. I'm sorry if I ask something that might already have been answered, but I couldn't find it.

I'm involved in a project converting an old military cockpit into a simulator and more specifically I'm responsible for the HUD, radar and flight computer. At first I did it all as one single program reading data from the sim via FSUIPC, making calculations and then presenting the result with OpenGL.

Soon I found it necessary to break this program into three separate programs being run on different computers. Since we're not using any Project Magenta stuff for this cockpit I though we could use the PM offsets to communicate between my programs. Said and done I got it to work on my own development computer, but when I sent it to be tested with the real cockpit we got some very peculiar results. When starting the simulator the aircrafts is violently jumping up and down on the runway and the G-meter in the cockpit is going between -2 and +8.

The offsets I've used are those between 0x04E0 and 0x0560. I haven't been able to investigate this very much but I thought I'd just ask if anyone knows what might be the problem while I continue to look into it. I haven't been able to check it, but we might be using slightly different versions of FSUIPC. Should that really cause this kind of trouble?

It seems very odd that my program setting offsets normally only used by PM can have an effect on MSFS.

Link to comment
Share on other sites

The offsets I've used are those between 0x04E0 and 0x0560. I haven't been able to investigate this very much but I thought I'd just ask if anyone knows what might be the problem while I continue to look into it. I haven't been able to check it, but we might be using slightly different versions of FSUIPC. Should that really cause this kind of trouble?

No. I think those offsets are used both for output to PM as well as by PM itself. If you want some offsets, best to apply as suggested in the documentatin. If you don't need much then 66C0-66FF (64 bytes) are available for general use by anyone.

Regards

Pete

Link to comment
Share on other sites

Thank you for the reply. I will change to those offsets you suggested, though it will be hard to limit my use to only 64 bytes. However, after further investigation of my problems it turns out to be a conflict with SIOC as it only occurs when SIOC is running on any computer on the network. Could it be that SIOC might use PM offsets? It's still very odd that this also has an effect on the airplane inside the simulator.

Link to comment
Share on other sites

it turns out to be a conflict with SIOC as it only occurs when SIOC is running on any computer on the network. Could it be that SIOC might use PM offsets? It's still very odd that this also has an effect on the airplane inside the simulator.

Possibly. Sorry, I don't know SIOC.

Pete

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.