Jump to content
The simFlight Network Forums

Gear position


Recommended Posts

Hi All!

I'm trying to get the gear position from FS to make a co-pilot say "Gear going down" - "Gear down - locked" etc. My problem is that I cannot seem to get any values inbetween 0 and 16383. The next reading after pressing the gear down button is 16383, just as it's 0 when retracting the gear.

The code is as follows if anyone can see any problems:

If FSUIPC_Read(&HBEC, 4, VarPtr(Tmp), dwResult) Then

If FSUIPC_Process(dwResult) Then

Nose_Gear_Pos = Tmp

End If

End If

all according to the SDK..

Regards,

Patrik

Link to comment
Share on other sites

I'm trying to get the gear position from FS to make a co-pilot say "Gear going down" - "Gear down - locked" etc. My problem is that I cannot seem to get any values inbetween 0 and 16383. The next reading after pressing the gear down button is 16383, just as it's 0 when retracting the gear.

Please check things out using FSInterrogate. What does that show? Try it with different aircraft.

Pete

Link to comment
Share on other sites

Tried another (stock) aircraft and it worked. Tried another add-on aircraft and it worked. Tried the first aircraft again and it worked for some reason. Re-started and tried with the first aircraft and it didn't work. Tried the add-on aircraft again and it worked. Switched back and it didn't work. I found that the main power switch was turned off in the first A/C, which seem to have caused the problem.

Regards,

Patrik

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.