On Thursday 10 February 2011 11:33:52 Geoff McLane wrote: > >From what Henri said, it certainly seems possible > > that nasal is dickering with the "gear Z position > (gear/unit/z-position) ...", or something, so more > to explore here... > > I can see in c172p/Nasal/action_sim.nas that it, > in the update_actions function, gets lots of gear > related nodes like - > > var dhN_ft = props.globals.getNode("gear/gear[0]/compression-ft", 1); > var dhR_ft = props.globals.getNode("gear/gear[2]/compression-ft", 1); > var dhL_ft = props.globals.getNode("gear/gear[1]/compression-ft", 1); > var propGear0 = props.globals.getNode("gear/gear[0]", 1); > var propGear1 = props.globals.getNode("gear/gear[1]", 1); > var propGear2 = props.globals.getNode("gear/gear[2]", 1); > var nose_link_rot = propGear0.getNode("compression-rotation-deg", 1); > var left_main_rot = propGear1.getNode("compression-rotation-deg", 1); > var right_main_rot = propGear2.getNode("compression-rotation-deg", 1); > > and later sets the latter 3 to calculated values... > At the end sets itself up to repeat on each frame - > settimer(update_actions, 0);
This is strictly setting animations, its not affecting anything in the FDM. > And ties itself into - > setlistener("sim/signals/fdm-initialized", init_actions); > and > setlistener("sim/signals/reset", init_actions); These are so the rotations aren't being calculated when the FDM is not available. > Hmmmm... can not yet see where the r/w 'surface' is in this, > but some things to try here, to at least rule out > this particular nasal, like comment out 1 or all of - > nose_link_rot.setDoubleValue(theta); > right_main_rot.setDoubleValue(right_alpha_deg); > left_main_rot.setDoubleValue(left_alpha_deg); > > But out of time today, but will be back tomorrow, after eating > and sleeping on it... I hope... ;=)) > > Thanks for all the input, and any other ideas welcome... Hey, I just reproduced the thing. Wind was 14 from 330 and I was on 08 so there is a small tailwind. The c172p isn't set up to handle out-of-flight envelope winds so it produces a large, erroneous pitching moment. I have an idea for a solution. Will test and submit soon. Ron > I look forward to a quiet life at YGIL ;=)) Usually do > not have many visitors, except the kangas... > > Regards, > > Geoff. ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel