On Mon, 2009-11-23 at 19:47 +0100, Nicola Quargentan wrote: > Ron Jensen ha scritto:
> First thank you for your settings :) > > But what about the use of axis instead of buttons? > For select the frequencies, buttons are good but I'm not sure going well > for radial selection: I can buy a rotary switch continuous, but how many > laps I have to do to move the first radial of 180 degrees, for example? > I do not know if I explained well the question. > I thought of using an 12 bit encoder with a resolution of 4096/360, more > than enough to select one radial. Obviously I should manage it as an > axis of the joystick. > > Some opinion? Thanks. For an axis in the range [0-1] use something like this: <axis n="0"> <desc>Heading Bug</desc> <binding> <command>property-scale</command> <property>autopilot/settings/heading-bug-deg</property> <dead-band type="double">0.0</dead-band> <offset type="double">0.0</offset> <factor type="double">360.0</factor> </binding> </axis> For an axis in the range [-1,1] use this: <axis n="0"> <desc>Heading Bug</desc> <binding> <command>property-scale</command> <property>autopilot/settings/heading-bug-deg</property> <dead-band type="double">0.0</dead-band> <offset type="double">1.0</offset> <factor type="double">180.0</factor> </binding> </axis> Even a 10 bit pot axis will give better than 1/2 degree selection. Jitter might be a problem. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users