Jump to content
The simFlight Network Forums

PUSHBACK WRITE OFFSET PROBLEM


Recommended Posts

I´m having problems with this offset. Here is the how.

When I do this:

pushv = 0;
FSUIPC_Write(0x31F4, 4, &pushv, &dwResult);
FSUIPC_Process(&dwResult);

and then  to stop it I do this

pushv = 3;
FSUIPC_Write(0x31F4, 4, &pushv, &dwResult);
FSUIPC_Process(&dwResult);

I have no problems to stop the PushBack.

BUT, when I do:

pushv = 0;
FSUIPC_Write(0x31F4, 4, &pushv, &dwResult);
FSUIPC_Process(&dwResult);

//After some seconds >> 

(pushv = 1)  or (pushv = 2); //It could be any of them
FSUIPC_Write(0x31F4, 4, &pushv, &dwResult);
FSUIPC_Process(&dwResult);

and then,

pushv = 3;
FSUIPC_Write(0x31F4, 4, &pushv, &dwResult);
FSUIPC_Process(&dwResult);

THe Pushback wont stop, I dont know why.

I must say, that this use to work fine, when I was using the normal IPCuser.c user lib, but, when I stated using the ModuleUser.c for internal proceess. I start having this problem.

Hope that some one knows the answere.:wink:

Regards

Thomas

Link to comment
Share on other sites

I´m having problems with this offset

Any FSUIPC log showing the sequence? You should always use logging -- that is what it is for. If you check the Logging page in options you will see IPC read and write logging options.

Try to do this with no other FSUIPC users also running so that the log only contains your efforts -- it makes things easier to interpret.

Also test things with default aircraft. Some complex panels may be interfering with what you are trying to do.

There's no difference between what FSUIPC does when called directly from inside FS to what it would do with an external call, though mostly internal users might as well use the normal interface FS provides, as documented in the Panels SDK.

Regards,

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.