danstefan Posted January 9, 2012 Report Posted January 9, 2012 Hi X-Plane communityMy name is Dan Stefan and i m new to X-Plane community ,and i want to get in more in aircraft development for X-Plane.I'm currently building an aircraft and i want to create also the 3d cockpit version. I managed to model , texture and import it succesfully into X-Plane as cockpit_INN.obj and also managed to put all instruments in place using the PNG mapping with the help of AC3D. But also i want in AC3D to animate some parts on my 3d cockpit like yoke and throttle lever. I would say i m familiar with how we animate with the help of AC3D and X-Plane plug in but it seems i can't find how do i search for each moving part the right DATAREFS to it (including the exterior aircraft example: landing gear doors).For example : I want to know the dataref for yoke (how do i pitch, aileron on left, center and right) when i push [ key for example my yoke object to move on a side like a real yoke.And throttle ,when i throttle down or up, my lever to animate like on a real cockpit.So i need some datarefs for this 2 functions : yoke (up, down, left , right) and throttle lever (going up and down) and maybe break lever but looks almost impossible from side to find the right ones from this list: http://www.xsquawkbo...s/DataRefs.html.Please i need some help, i would really appreciate this.Thanks! Quote
Pete_SMS Posted January 9, 2012 Report Posted January 9, 2012 (edited) Hi danstefan,for the yoke usesim/joystick/yoke_roll_ratio where +1.0 full right; -1.0 full left; 0 centersim/joystick/yoke_pitch_ratio where +1.0 full back; -1.0 full forward; 0 centerand for the throttle usesim/flightmodel/engine/ENGN_thro where 0 full back (idle); +1.0 full throttleKeep in mind that the throttle dataref if a float array with 8 elements, so you have to specify which engine you want to use. Use index "0" if you only have one throttle/engine.Pete Edited January 9, 2012 by Pete Quote
danstefan Posted January 9, 2012 Author Report Posted January 9, 2012 Thanks for info Pete, was very helpfullHowever i havent succed yet to make the yoke move , only the throttle like u said.i want yoke to work on keyboard, i use cockpit2/ datarefs? Quote
Pete_SMS Posted January 9, 2012 Report Posted January 9, 2012 (edited) Yip, I would try sim/cockpit2/controls datarefs, as the others are tied to the joystick.You can check with the dataref editor plugin, if the datarefs do what you expect them to do, when you move the yoke with the keyboard. Edited January 9, 2012 by Pete Quote
arno54 Posted January 11, 2012 Report Posted January 11, 2012 the inputs are FC_ptch, FC_roll, where FC stands for FlightControls. The "yoke" dr read the actual deltas of the yoke, if there is none, it will not work. FC dr read the current logic input. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.