Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello Pete,

I'd like to Increment and Decrement the First officer QNH (Offset 552E) and DH/MDH (Offset 5532) using pushbutton commands. I thought I've seen incr/decr commands in your documents but cannot find them (perhaps because I've been reading them late at night). Can you please give me a code snippet to work from.

Many Thanks,

- Chris

Posted

I'd like to Increment and Decrement the First officer QNH (Offset 552E) and DH/MDH (Offset 5532) using pushbutton commands. I thought I've seen incr/decr commands in your documents but cannot find them

Try the User Guide. There's a boxed section specifically covering these, in the Buttons section. Just try searching for Increment or Decrement. There won't be that many matches.

Regards

Pete

Posted

Hello Peter,

OK, I've had some success but have encountered a small problem.

I've been working with "Captain Decision Height" at offset 04FA as a way of learning the process.

Based on a Signed Byte commands to inc/dec I acheived these results.

I can set the value using: Cx010004FA, x14 -> Reports 200ft

I can decrement the value: Cx410004FA,x01 -> Decrements value

I cannot incement the value: Cx310004FA,x01 -> Sets value to zero

If I change to an Unsigned Byte commands I get different results:

I cannnot decrement the value: Cx210004FA,x01 -> Sets value to zero

I cannot incement the value: Cx110004FA,x01 -> Decrements value

I know the results above are confusing but it's true. The Increment command decrements and the decrement command sets the value to zero. I believe I'm not specifying the parameter correctly, can you provide assistance?

Thanks,

Chris

Posted

OK, I've had some success but have encountered a small problem.

I've been working with "Captain Decision Height" at offset 04FA as a way of learning the process.

Based on a Signed Byte commands to inc/dec I acheived these results.

Two points already.

1. 04FA is not a byte but a word (2 -bytes, or 16 bits).

2. Why are you messing about in the INI file when you can do all this in the FSUIPC options much easier? Did you not refer to the section all about this in the User Guide? It tells you all about specifying LIMITS there, which you have ignored altogether in yuor attempts.

I can decrement the value: Cx410004FA,x01 -> Decrements value

Because the lower limit is zero, as you've set by omitting it.

I cannot incement the value: Cx310004FA,x01 -> Sets value to zero

Because the upper limit is zero, as you've set by omitting it.

I believe I'm not specifying the parameter correctly, can you provide assistance?

Please delete all the stuff you've added manually, then load up FS and go to the FSUIPC Options. Select the Buttons (or Keys) tab, and follow the instructions in the USER manual, not the Advanced Users manual. Use the WORD operations, as appropriate to the value you are addressing, and either unsigned or signed depending upon whether you want to allow decrementing/incrementing between DH and MDA values.

I'm sure I referred you to the correct documentation earlier?

:-(

Regards

Pete

Posted
Two points already.

1. 04FA is not a byte but a word (2 -bytes, or 16 bits).

Yep, Bone-head mistake... forrest for the trees stuff. The whole reason I asked for help in the first place.

2. Why are you messing about in the INI file when you can do all this in the FSUIPC options much easier? Did you not refer to the section all about this in the User Guide? It tells you all about specifying LIMITS there, which you have ignored altogether in yuor attempts.

I tend to spend most of my time in the Advanced guide.. did not think to look and the User guide for clarification. I took your advice and used the FSUIPS options feature. It cleared things up for me.

Because the lower limit is zero, as you've set by omitting it.

Because the upper limit is zero, as you've set by omitting it.

Computers are wonderful... They only do what you tell them to!

Thanks for your help.

- Chris

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.