Setting Bank Angle in Autopilot

Discuss on the SimConnect SDK can be used by programmers to write add-on components for Prepar3D
Locked
ksetrum
Posts: 1
Joined: Fri Mar 16, 2018 6:45 pm

Setting Bank Angle in Autopilot

Post by ksetrum »

Is it possible to set the desired bank angle while the autopilot is turned on? I have an external FMS that calculates the bank angle/roll to maintain course. In XPlane this is a simple command to set the flight director pitch and bank angles. I don't see an equivalent in the Simconnect API.
Mike Schroeter
Lockheed Martin
Posts: 341
Joined: Thu Jan 12, 2012 7:05 pm

Re: Setting Bank Angle in Autopilot

Post by Mike Schroeter »

Hi Kyle,

Unfortunately that is not a supported capability of the core AP. Desired pitch and bank values are determined by higher level modes, e.g. NAV, Heading, Altitude. In other words you can't replace the intermediate logic that sits between the high level modes and the low level aileron and elevator controllers.

One option would be to simply keep the AP in Heading and Altitude modes and feed those parameters, allowing the core AP to drive the pitch/bank. Other developers have had success completely disabling the core AP in the aircraft.cfg and creating your own. This would require modeling the low level controllers to update the control surfaces and/or yoke positions. This could be done through the IBaseObject::RegisterService, Panel/Gauge API. SimConnect is possible, but you may run into asynchronous issues.

Hope this helps,
Mike
Locked