Hi Pete,
Thanks for the quick reply. I'll try to explain my "code" line by line :-)
1. By "automatic trim" (sorry, poor choice of words) I mean this: a side effect of adding ambient wind is that the nose
of the aircraft goes down a bit while the wind is applied. Also, to keep the nose up in the flare you need to apply
constant pressure on the joystick. Maybe in RL it's the same I don't know... So by trimming the nose up, it's
easier to keep it there. It's difficult to explain but it works well.
2. Joystick 0, button 1 is my autopilot disconnect switch. I "switch on" the ground effect when I disconnect the
autopilot. I also wanted to create a different ground effect for takeoff (with reverse sign for the condition
i.e. D31E4>350000 more ambient wind, D31E4>400000 less ambient wind, etc).
Yes FS itself crashes, i.e. CTD, with no windows messages
Do you mean that I could use decimal?. Hmm I find it easier if it's decimal.
Thanks for the tip, I'll give it a try.
Now for the code (I've reworked the "Offset Byte/Word ClrBits/Setbits" part, I hope it's OK now.):
12=W0366=0 P0,1,Cx06003344,x3FFF ;"switches on the ground effect" it works in the air only, otherwise FS crashes
13=D31E4<700000 R64,0,Cx74003478,xFFFFFE3E ;negative Y wind - the aircraft doesn't "baloon" when you pull up the nose - looks closer to reality
14=D31E4<680000 R64,1,Cx09003340,x01 ;switches off the above button
15=D31E4<500000 R64,2,C65615,0 ;this is the automatic trim i was talking about - it's starts trimming and is turned off at the next line
16=D31E4<425000 R64,3,Cx09003340,x04 ;switches off the above button
17=D31E4<420000 R64,4,C65706,5000 ;sets the trim - there's no way to tell "C65615" when to stop trimming and so I have to stop it at some point and then set it to a certain value
18=D31E4<415000 R64,5,Cx09003340,x10 ;switches off the above button
19=D31E4<410000 R64,6,Cx74003478,x000001C2 ;ground effect ~ 10ft
20=D31E4<405000 R64,7,Cx09003340,x40 ;switches off the above button
21=D31E4<360000 R64,8,Cx74003478,x0000028A ;ground effect ~ 5ft
22=D31E4<350000 R64,9,Cx09003345,x01 ;switches off the above button
23=D31E4<341000 R64,10,Cx74003478,x000002EE ;ground effect ~ 2ft
24=D31E4<330000 R64,11,Cx09003345,x04 ;switches off the above button
25=D31E4<310000 R64,12,Cx74003478,x000000AA ;removes most of the ground effect very close to the rwy - this way the a/c "steps" firmly on the runway on touch down. there's no way to explain this, but it works as I want it
26=W0366=1 R64,13,C65706,6000 ;add more trim on touchdown otherwise the nose slams on the runway as if all passengers are in the cockpit
27=P0,0,Cx0A003340,x3FFF ;when I press the brakes I switch off all virtual buttons
Thank you :-D I'm happy I've created something interesting (if I can get it to work properly of course). I used to have some working versions, but as I added new lines it all stopped working. A few other conclusions I made:
I've watched several videos over and over again, to see what happens IRL and then I test it in the sim. I keep changing the data until I'm satisfied. The results are very good IMO. The "downside" is that this "ground effect" cannot be used for every a/c because radio altitude is measured from the datum point of the a/c which is different for every a/c (Did I miss an offset for that, i.e. something that calculates the altitude from the wheels to the ground?). Pitch is also important because the datum point is not always exactly above the wheels.
I hope this is more understandable now. Explaining isn't my best skill :-)
Regards, Chris