chazzie Posted March 23, 2004 Report Posted March 23, 2004 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
Pete Dowson Posted March 23, 2004 Report Posted March 23, 2004 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
chazzie Posted March 23, 2004 Author Report Posted March 23, 2004 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
Pete Dowson Posted March 23, 2004 Report Posted March 23, 2004 I found that the main power switch was turned off in the first A/C, which seem to have caused the problem. Ah, interesting! Seems that the indicators give misleading results with no power? Did the gear actually deploy/retract? Regards, 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