FORUM › Forums › Software › CLS2SIM Software › Yoke won't move when autopilot is engaged in the Zibo mod in XP11 › Reply To: Yoke won't move when autopilot is engaged in the Zibo mod in XP11
Thank you.
I need to clarify something here for future endeavors regarding third-party aircraft.
– We take suggestions for API improvements, that allow other developers to better implement support for our hardware. (What happened here)
– We do not support third-party aircraft ourselves. (The list would grow infinitely in short order)
So the thanks really has to go to Lubos, the Zibo mod developer, because he invested time to make his product work with ours.
What happened:
Webmaximus did talk and network on both sides and brought a suggestion from Lubos to me. Thanks Webmaximus for taking the time.
Lubos from Zibo mod suggested an addition to the way the AP can be controlled externally via X-Plane Datarefs.
As it is not an aircraft specific change, but can be used by any X-Plane model developer developing his own plugins for X-Plane,
we have implemented that change for him and any future model builder wishing to make use of the Brunner AP feature.
The Technical stuff:
Applies to CLS2Sim 4.19.0 and later.
Applies to X-Plane plugin 6.3.2 and later.
Applies to any Brunner Joystick, Yoke or Pedal.
The changes allow controlling the Brunner AP on/off state and AP position for Pitch, Roll and Yaw axes by using X-Plane Datarefs.
beh/autopilot_external_control = 0 (Default)
Brunner AP is controlled by CLS2Sim which reads the normal X-Plane AP data.
beh/autopilot_external_control = 1
Deactivate Brunner AP, regardless of X-Plane AP state.
beh/autopilot_external_control = 2
Activate Brunner AP for Pitch & Roll.
Write the following Datarefs to set position:
sim/cockpit2/controls/aileron_trim
sim/cockpit2/controls/elevator_trim
beh/autopilot_external_control = 3
Activate Brunner AP for Pitch & Roll & Yaw.
Write the following Datarefs to set position:
sim/cockpit2/controls/elevator_trim
sim/cockpit2/controls/aileron_trim
sim/cockpit2/controls/rudder_trim
beh/autopilot_external_control = 4
Activate Brunner AP for Pitch & Roll.
Write the following Datarefs to set position:
sim/joystick/yoke_pitch_ratio
sim/joystick/yoke_roll_ratio
beh/autopilot_external_control = 5
Activate Brunner AP for Pitch & Roll & Yaw.
Write the following Datarefs to set position:
sim/joystick/yoke_pitch_ratio
sim/joystick/yoke_roll_ratio
sim/joystick/yoke_heading_ratio
Regards
Diego