Sign in to follow this  
Guest rbumm

Airbus and setting the elevator deflection - bug ?

Recommended Posts

Hi, In my FSXPilot project I set the aircrafts elevator by: // during init hr = SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_POSITIONELEVATOR, "Elevator Position", "Percent");........// and in the elevator control function if (hSimConnect) {sv.value = setval * 100.; // setval is -1.0 to 1.0SimConnect_SetDataOnSimObject(hSimConnect, DEFINITION_POSITIONELEVATOR, SIMCONNECT_OBJECT_ID_USER,0, 0, sizeof(sv), &sv); } .........This works great for all the planes in FSX - except the Airbus. Setting negative values here always results in a full, not a partial deflection (down). Funny: On ground there is no error, but in the air. In addition, my code to set the elevator trim from FSP works in all planes - except the airbus. Anybody else seen this ? Is there a workaround maybe ? regardsrb

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

I believe the Airbus has a fly-by-wire code built into it. This could be interfering with your external application trying to control the aircraft.

Share this post


Link to post
Share on other sites

If I'm not mistaken, there are specific controls for the fly-by-wire, so there may be a variable or event to turn it off, in which case you should be able to do your work.**************EDIT: I found the following events that may be helpful to you.KEY_FLY_BY_WIRE_ELAC_TOGGLEKEY_FLY_BY_WIRE_FAC_TOGGLEKEY_FLY_BY_WIRE_SEC_TOGGLEIn the order of Elevators and Ailerons Computer, Flight Augmentation Computer and Spoilers and Elevators Computer.You could do a check for the (non-settable) FLY BY WIRE ELAC SWITCH, FLY BY WIRE FAC SWITCH, and FLY BY WIRE SEC SWITCH and if on (meaning airbus or an add-on using the built in FBW) you could use the toggle events to turn them off.

Share this post


Link to post
Share on other sites

That is exactly how you have to get it to work - switch ELAC and FAC off manually or by a key event (which I do now, all three wires, in case they are on). Now the A321 flies and autolands like heaven ...Well done. I'll call you senator from now on, or award you a senator card (lufthansa). regardsrudolf

Share this post


Link to post
Share on other sites

I've got my mod badge, that's enough for me.And most of my friends online just shorten it to NAS, we try not to think of rappers, and everyone is happy.Off to get my copy of FSX.

Share this post


Link to post
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
Sign in to follow this