rustyoldboat Posted August 19, 2007 Report Posted August 19, 2007 Hi Guys, I am writing a vb.net app at the moment which is intended to move an aircraft in certain directions at slow speed using the slew function. I am enabling Slew Mode using offset 05DC, which works successfully. However, when I attempt to move the aircraft left or right (using offset 05ED) or backward or forward (using offsed 05EB) the aircraft immediately goes into a high speed roll and a high speed yaw. I have attempted setting yaw and roll values to 0 (using offsets 05E4 and 05E6), but this does not help. I wonder if anyone has any thoughts on what might be causing this, or if there is another way I can work around this. With thanks Greg
Pete Dowson Posted August 19, 2007 Report Posted August 19, 2007 I am enabling Slew Mode using offset 05DC, which works successfully. However, when I attempt to move the aircraft left or right (using offset 05ED) or backward or forward (using offsed 05EB) the aircraft immediately goes into a high speed roll and a high speed yaw. I have attempted setting yaw and roll values to 0 (using offsets 05E4 and 05E6), but this does not help. Is this with FSX or FS9? If it is in FSX it may well be my error, as these have not been fully tested yet, I'm afraid (there's been so much to test/develop still!) Could you please enable IPC write logging, and also set the FSUIPC monitor to monitor 05E4 (type S16), 05E6 (S16), 05EB (S8) and 05ED (S8) to the normal log, then reproduce the problem and show me the LOG file? Also, as soon as you confirm FSX (or not) I will try to check it here. Regards Pete
rustyoldboat Posted August 19, 2007 Author Report Posted August 19, 2007 Thanks Peter. FS9. I will do as instructed and report back. Many thanks again Greg
Pete Dowson Posted August 19, 2007 Report Posted August 19, 2007 Thanks Peter. FS9. It should certainly all work well in FS9. I have an Aerosoft GA28R cockpit with a driver which uses those offsets to provide slewing facilities using the yoke, and that works fine. Do you perhaps have any axes assigned to slewing which may be off-centre when slew mode is engaged? Just check that setting slew mode from the keyboard ("Y") doesn't do the same. Else, I await the Log to see what is happening. Regards Pete
rustyoldboat Posted August 19, 2007 Author Report Posted August 19, 2007 I have not produced one of these logs before, so I hope the information is what you are seeking. With thanks Greg [Continuation log requested by user] Module base=61000000 ClassOptions: UIPCMAIN=FF7F, FS98MAIN=FF7F, FS2KMAIN=FF5E WeatherOptions(Orig)=40003605[40003605] InitDelay: 0 seconds WeatherReadInterval=4 LogOptions=00000005 15498013 System time = 21:18:13, FS2004 time = 12:26:03 (02:26Z) 15498013 LogOptions changed, now 00000005 (LogExtras=0) 15500962 WRITE0 05ED, 2 bytes: 00 00 15500962 WRITE0 05DC, 2 bytes: 01 00 15506531 WRITE0 05ED, 2 bytes: 00 00 15506531 WRITE0 05DC, 2 bytes: 00 00 15507701 WRITE0 3210, 2 bytes: FF FF 15516406 LogOptions changed, now 00000001 (LogExtras=0)
rustyoldboat Posted August 19, 2007 Author Report Posted August 19, 2007 Do you perhaps have any axes assigned to slewing which may be off-centre when slew mode is engaged? Just check that setting slew mode from the keyboard ("Y") doesn't do the same. Thanks Pete. Slew mode does not create the same problem and in fact the aircraft sits there quite happily in slew mode generated through 05DC. Only when I engage 05ED and 05EB is it a problem. I've tested many of the other slew functions which all seem to work fine for me. Cheers Greg
Pete Dowson Posted August 19, 2007 Report Posted August 19, 2007 15500962 WRITE0 05ED, 2 bytes: 00 00 15500962 WRITE0 05DC, 2 bytes: 01 00 15506531 WRITE0 05ED, 2 bytes: 00 00 15506531 WRITE0 05DC, 2 bytes: 00 00 Both 05EB and 05ED are documented as 1 byte offsets, yet you are writing 2 bytes for 05ED. The second byte will cause something to happen at offset 05EE, which controls the pitch. You said that the roll and yaw were affected, which seems odd. Are you sure it isn't a high speed pitch change? Try using 1 byte writes of 05EB and 05ED then get back to me. Regards Pete
rustyoldboat Posted August 19, 2007 Author Report Posted August 19, 2007 Both 05EB and 05ED are documented as 1 byte offsets, yet you are writing 2 bytes for 05ED. The second byte will cause something to happen at offset 05EE, which controls the pitch. You said that the roll and yaw were affected, which seems odd. Are you sure it isn't a high speed pitch change? Try using 1 byte writes of 05EB and 05ED then get back to me. Pete Pete, you are brilliant, and I bow my head because I am very stupid. I assigned 05EB and 05ED with the wrong data type and as soon as I assigned a single byte write it worked perfectly. Sorry to have troubled you but thank you so much for you quick and excellent help. Cheers Greg
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