chriskilding / XPTouchBar

Control X-Plane with your Mac's Touch Bar
MIT License
3 stars 0 forks source link

Propeller pitch control doesn't work correctly #2

Open chriskilding opened 2 years ago

chriskilding commented 2 years ago

Expected:

The propeller pitch Touch Bar control should move the pitch lever in the aircraft.

Actual:

When the Touch Bar control is changed, the pitch lever does not move, but the engine seems to slow down temporarily.

chriskilding commented 2 years ago

This may be a problem with the sim/cockpit2/engine/actuators/prop_ratio_all dataref.

Alternatively it could be the wrong dataref to use for this control.

chriskilding commented 2 years ago

The prop lever does move as you would expect if you

The fundamental problem with this approach, of course, is that it does not generalise to all possible prop aircraft - it only works for one specific aircraft. (E.g. if you try to use the 0...283 rad/s range on the freeware Dash Q300, only the first half of the slider range is usable; beyond that, the prop lever in the cockpit slides beyond the end of its range, and the prop RPM goes way beyond the maximum that the aircraft can handle.)

This dataref also only works for constant-speed props, not manual adjust props (of which there might be a few in the X-Plane freeware universe).